When I have Maven generate the JPA2 metamodel for me, using the JPAMetaModelEntityProcessor plugin (from hibernate-jpamodelgen 1.2.0-Final), I found that fields that have type Serializable are not included in the resulting metamodel class.
A simple setup which illustrates this issue can be found here: https://gist.github.com/mauricedchateau/5197848 (sorry, no real link, URLs are disabled...) This is a minimal POM file with a single entity class, which contains a Serializable field.
If the Serializable field is marked with @Basic - something that is not necessary for the other fields - it is included in the generated class.
Is this the correct behaviour? I would expect that the field would be included without the @Basic annotation as well...
|