hashCode « Composite « JPA Q&A





1. Hibernate: Strategy/pattern for object and entity identity mapping using composite keys?    stackoverflow.com

What is a general collision-free Java best practice to generate hash codes for any-type (atomic types) multi-column primary keys? I thought about it for a few hours and came to the conclusion, ...

2. Composite id, over riding equals and hashCode    forum.hibernate.org

Hello I've been reading the docs on composite id and all that stuff, and I could do with an example of where composite id is used along with an existing native id in order that saveOrUpdate works with objects that are passed up the the model tier. Preferably there's an example using xdoclet tags, before anyone start RTFM type responses I ...