Package com.xebia.cqrs.domain

Examples of com.xebia.cqrs.domain.AggregateRootNotFoundException


            try {
                AggregateRootSink<T> sink = new AggregateRootSink<T>(expectedType, id);
                eventStore.loadEventsFromLatestStreamVersion(id, sink);
                return sink.getAggrateRoot();
            } catch (EmptyResultDataAccessException ex) {
                throw new AggregateRootNotFoundException(expectedType.getName(), id);
            }
        }
View Full Code Here


                eventStore.loadEventsFromExpectedStreamVersion(id.getId(), id.getVersion(), sink);
                result = sink.getAggrateRoot();
                addToSession(result);
                return result;
            } catch (EmptyResultDataAccessException ex) {
                throw new AggregateRootNotFoundException(expectedType.getName(), id.getId());
            }
        }
View Full Code Here

TOP

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

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.