JPA 2 support
Hyperjaxb3 supports JPA 2 since version 0.5.6.
Generating JPA 2 metadata
jpa2 variant to generate JPA 2 annotations:
Supported JPA 2 features
Collections of simple types
JPA 2 supports collections of simple types using the
Hyperjaxb3 uses this feature to improve mapping of the repeatable simple type elements.
In JPA 2,
@Embeddable mechanism is much more powerful when compared to to JPA 1. Embeddable classes can now have complex properties, associations, collections - and even nested embeddables.
Hyperjaxb3 now supportes
Note that both
PersonType as well as
AddressType are embeddable. Moreover,
PersonType has a nested embeddable (
Here's how it looks like in the database:
Note that column names for both embeddable
AddressType fields do not collide.