How to create n entry wid one column same as PK.,
July 16, 2008 at 6:52 PM
I am tring to insert the data in database table, I use <generator class="increment"> so that everytime the PK is incremented. the prob is I want the same primary key value (just as a value) to other column. please tell how to do that..like if I creaat my object as obj, then I hav obj.id() will aoutomaticaly b created and i wont set that but i want obj.val2() same as the ID which was automaticaly created..how to do that??