throws UnitOfWorkCompletionException
{
try( UnitOfWork unitOfWork = module.newUnitOfWork() )
{
NameableAssert.clear();
Domain gaming;
{
EntityBuilder<Domain> domainBuilder = unitOfWork.newEntityBuilder( Domain.class, "Gaming" );
gaming = domainBuilder.instance();
gaming.name().set( "Gaming" );
gaming.description().set( "Gaming domain" );
gaming = domainBuilder.newInstance();
NameableAssert.trace( gaming );
}
Domain programming;
{
EntityBuilder<Domain> domainBuilder = unitOfWork.newEntityBuilder( Domain.class );
programming = domainBuilder.instance();
programming.name().set( "Programming" );
programming.description().set( "Programing domain" );
programming = domainBuilder.newInstance();
NameableAssert.trace( programming );
}
Domain cooking;
{
EntityBuilder<Domain> domainBuilder = unitOfWork.newEntityBuilder( Domain.class );
cooking = domainBuilder.instance();
cooking.name().set( "Cooking" );
cooking.description().set( "Cooking domain" );
cooking = domainBuilder.newInstance();
NameableAssert.trace( cooking );
}
Domain cars;
{
EntityBuilder<Domain> domainBuilder = unitOfWork.newEntityBuilder( Domain.class );
cars = domainBuilder.instance();
cars.name().set( "Cars" );
cars.description().set( "Cars" );
cars = domainBuilder.newInstance();
NameableAssert.trace( cars );
}
City kualaLumpur;