Beginner |
|
Joined: Fri Feb 13, 2009 5:27 am Posts: 36 Location: India
|
HI jkala...
If you need to assign the identifier yourself in your application, then use the assigned generator. You set the identifier using the set<identifier> method of the Java class. The application assumes the responsibility of making sure the id value is unique; otherwise, you’ll probably get a database insert exception.
So....
<id name="id"column="user_id"type="long"unsaved-value="null"> <generator class="assigned"/> </id>
bye.tc.
_________________ parag
|
|