From: Gavin_King/Cirrus%<CI...@ci...> - 2002-03-08 05:37:46
|
> Mckoi has a function UNIQUEKEY which generates a uniqueid, but it > doesn't seem to fit the model employed by Hibernate... > SELECT UNIQUEKEY('Orders') DB2 also has something like this. I think its easy enough to write an IDGenerator to take advantage of this style of key generator (ditto oracle sequences, etc). Its the Identity column style that needs special support. P.S. If anyone wants to write an IDGenerator for Oracle sequences or whatever, it would be a very worthwhile feature, >> The native key generation rearranges the insertion order of objects and was >> causing foreign key constraint violations. I have made a quick (easy) fix, >> though something more efficient might be better in future. (Nothing changed >> for non-native key generation.) > I'm not so sure... how can i replicate this, Doug? |