Joined: Wed Feb 06, 2008 8:58 am Posts: 3
|
I was working on circular references in Hibernate. Since my last post sort of was very specific, I thougt of a mor practical situation with the same need for a one-to-many relation between objects of the same type.
If you consider a regular threadded newsgroup-table. In this table every entry has an id and a parentId (Ok ... and some further data containing the message). Thread-starts are represented by a parentId = null.
How would one model this using hibernate?
|
|