Hi All,
I am trying to save an Object's state in to the database. The primary key for this object is a string (varchar2).
My question is -->
what do I use as my primary key generator class in the mapping file i.e
what should be the value of class attribute
<generator class="......."/>
I tried uuid.string and uuid.hex , but my problem with that is hibernate generates its own value for the primary key and inserts the record with that value. And the value of the primary key which is set by the application is lost.
Any inputs/pointers will be greatly appreciated.
Thanks
|