Expert |
|
Joined: Tue Nov 23, 2004 7:00 pm Posts: 570 Location: mostly Frankfurt Germany
|
I am not sure if I totally understood your question.
I understood it as following. You want to have a component as primary key.
In this case you may use
composite-id which is explained in the Hibernate reference
8.4. Components as composite identifiers
Please rate, if this helped.
Regards Sebastian
_________________ Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de
|
|