But then I read this post from JavaOne about what might be coming in JPA 2.0, and it gave me a feeling of quite some bit of functionality present in Hibernate but missing in JPA 1.0. A short list of what might be coming in JPA 2.0 and hence missing from the current JPA:
- @Embeddable to map columns of a table to a class inside another class without having to map the embedded class to a table by itself
- Ordered lists in the database
- Specifying access types (field or property) on a pr. entity class level instead of on all entity classes
- Uni-directional mapping on 1-N relations
So, here is the question: "Is it possible to use JPA standard annotations for mapping the entities and then falling back on Hibernate specific mapping annotations when I need a specific feature that JPA does not have?". Of course, for this to work, I must be using hibernate as the JPA provider implementation.