Re: [Hibernate] self-referential table

2003-09-10 Thread sw-list
On Tuesday, September 9, 2003, at 07:07 PM, Gavin King wrote: Theres nothing particularly special about this. Just map it as you would any other association. The only problem is your -1, which breaks referential integrity of the whole table! just switch to using an SQL null. Ok, I guess this is

[Hibernate] self-referential table

2003-09-09 Thread sw-list
Alright, so I've searched all over the web (this list doesn't appear to be archived either), so here I am ;-). I am finally getting into using Hibernate on a few projects and have run across something that I'm sure how it would be handled. I have one table that uses itself as a collection. Bas