Hi, all!
I am sure this came up and I missed the discussion but I am a bit
confused on how to create an entity that has non-optional properties:
public interface Account extends HasPrimaryContactPerson, HasName
{
Property<BigDecimal> balance();
}
creations code:
uow = moduleInstance.unitOfWorkFactory().newUnitOfWork();
account = uow.newEntityntity( Account.class, newId );
account.balance().set( new BigDecimal( "323423.87" ) );
account.name().set( "Big account." );
uow.apply();
throws an exception on line
account = uow.newEntityntity( Account.class, newId );
as balance is not there. But I do not see an obvious way to provide
it. If I make balance optional everything work fine.
What do I need to do here, aside from making balance optional?
Thanks,
Alex
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev