Package com.xebia.cqrs.domain

Examples of com.xebia.cqrs.domain.AggregateRoot


            }
            addToSession(aggregate);
        }

        private <T extends AggregateRoot> void addToSession(T aggregate) {
            AggregateRoot previous = aggregatesById.put(aggregate.getVersionedId().getId(), aggregate);
            if (previous != null && previous != aggregate) {
                throw new IllegalStateException("multiple instances with same id " + aggregate.getVersionedId().getId());
            }
        }
View Full Code Here

TOP

Related Classes of com.xebia.cqrs.domain.AggregateRoot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.