codefilarete.org - Code Filarete

java orm architecture cqrs hibernate jpa method-reference (1)

Example domain paragraphs

Stalactite   ORM 1.0.0 is out !!

map(Person::getName)

entityBuilder(Person.class, long.class) .map(Person::getId).identifier(IdentifierPolicy.afterInsert()) .map(Person::getName) .mapOneToOne(Person::getHouse, entityBuilder(House.class, long.class) .map(House::getId).identifier(IdentifierPolicy.afterInsert()) .mapOneToOne(House::getAddress, entityBuilder(Address.class, long.class) .map(Address::getId).identifier(IdentifierPolicy.afterInsert()) .map(Address::getLocation)