I am looking for an update on this topic.
The general attitude of the Hibernate team seems to be to discourage the use of composite primary keys and particularly the mapping of foreign keys to non-primary, non-composite properties of one-to-many-association owning entities.
I tend to agree from a design perspective, but this stance falls apart very quickly for me without the support for get(), load() and second level caching with natural ids.
The 2 JIRAs for this seem to have been targeted for 3.6, then at some point were pushed back to "3.x".
This issue is very high impact for my project and I need to know if I should wait for a new Hibernate version or get started on all the compensating code to deal with the lack of natural id support.
|