160161162163164165166167168169170
{ throw new NoSuchEntityException( identity ); } } return entityInstance.<T>proxy(); } public Usecase usecase() { return usecase;
104105106107108109110111112113114
entityState.copyTo( newEntityState ); EntityInstance instance = model.model().newInstance( uow, model.module(), newEntityState ); Object proxy = instance.proxy(); // Add entity in UOW uow.addEntity( instance ); // Invalidate builder
151152153154155156157158159160161
instance.checkConstraints(); addEntity( instance ); return instance.<T>proxy(); } public <T> EntityBuilder<T> newEntityBuilder( Class<T> type ) throws EntityTypeNotFoundException {
108109110111112113114115116117118
182183184185186187188189190191192
{ throw new NoSuchEntityException( identity, mixinType ); } } return entityInstance.proxy(); } public Usecase usecase() { return usecase;