merge « ID « JPA Q&A





1. How to make Play create a new ID(auto increment) when doing a merge with existing object    stackoverflow.com

Right now I'm doing this but it seems to not work right. Thanks for any help.

   public static void submit(@Valid WrapSpec wrapSpec) { 
   ...

2. merge does not populate id?    forum.hibernate.org

Regular Joined: Thu Sep 16, 2004 4:56 pm Posts: 80 I am sure this has been asked before, but the keywords I used for the search did not help. Why does the below test fail? Specifically, I expected the id to be non-null, but it was null. Code: public void testIdAfterMergeNotNull() { ...

3. think I need merge operation but merge not updating Ids    forum.hibernate.org

Newbie Joined: Tue May 02, 2006 12:32 pm Posts: 8 Hibernate version: Hibernate 3.2.0.cr2 Hibernate Annotations 3.2.0.cr1 Spring 1.2.7 Name and version of the database you are using: MySql This is an unusual problem we are having, and I would very much appreciate some help :- 1) We have a situation where we seem to need to use merge() rather than ...

4. Getting the Hibernate Generated Native Id after merge    forum.hibernate.org

RiskReport dpaRiskReport = new RiskReport(); riskReport.setFileName(theFile.getName()); ...

5. update QL for merge incorrect for compound Id    forum.hibernate.org