Hibernate version: 2.1.8
hi,
i've got a one-to-many relationship between to objects, uni-directional.
I've used a "set"-mapping ...
On every column is a "NOT NULL"-constraint in the db.
Everything works fine, loading, updating and creating a new instance.
The only thing that doesn't work is deleting an instance from the set because the OneToManyPersister generates an update-statement with 'null'-values for the foreign keys in the "generateDeleteString"-method. My database doesn't like that ;-)
Is there a way to get it work without making the relationship bi-directional? I've read in the FAQ that this could be a solution ...
Or am i doing something terribly wrong if i'm writing my own persister for that case? On which side of the ony-to-many-relationship must i use this persister?
thx!
curio
|