From: Gavin_King/Cirrus%<CI...@ci...> - 2002-02-25 13:58:12
|
> The doco says somewhere that hibernate will do create's before delete's. > If I use a primary key that's not a synthesised "oid" but a real-world > attribute (e.g. part-number), as in the case of a legacy DB table > structure, I get problems when I try to delete one object and then > re-insert another object with that same primary key value. > Is this still the case? I know I can split it over two transactions, but > that's not always possible or desirable. Yeah this is unchanged and likely to remain so. To fix this would require really extreme redesign. It would usually be possible to do what you want to do as an update to the old object, anyway. |