Address address = addressBuilder.prototype();
address.line1().set( "Qi Street 4j" );
address.line2().set( "Off main Java Street" );
address.zipcode().set( "12345" );
Female annDoe;
{
EntityBuilder<FemaleEntity> femaleBuilder = unitOfWork.newEntityBuilder( FemaleEntity.class, "anndoe" );
annDoe = femaleBuilder.instance();
annDoe.name().set( "Ann Doe" );
annDoe.title().set( Person.Title.MRS );
annDoe.placeOfBirth().set( kualaLumpur );
annDoe.yearOfBirth().set( 1975 );
annDoe.interests().add( 0, cooking );
annDoe.password().set( "passwordOfAnnDoe" );
annDoe.mainAccount().set( annsAccount );
annDoe.accounts().put( "anns", annsAccount );
annDoe.accounts().put( "jacks", jacksAccount );
annDoe.address().set( addressBuilder.newInstance() );
annDoe = femaleBuilder.newInstance();
NameableAssert.trace( annDoe );
}
{