Hi, i have requirement where i need to display two records. here user can add more records by right clicking (using gwt ). user tries to remove those two records and adds one more record, then i need to delete 2 records and insert 1 record. i am passing 2 separate lists, one contains deleted rrecords, the other one contains inserted records. the problem is 2 recordds are deleted but for the other record to be inserted, hibernate is firing update query instead of insert query. I am using merge(). please suggest me..
Thanks, Salmon
|