[jboss-user] [EJB 3.0] - Re: EJB Merge doesn't merge existing entities

Wolfgang Knauf do-not-reply at jboss.com
Tue Feb 24 08:34:25 EST 2009


Hi,

hard to say what goes wrong.

The only possible problem I saw: the field "dealerNo" does not contain a @Column annotation:
private int dealerNo;

So maybe this field is not set synchronized with the database, so that your "getDealer" method does not find anything and the client creates a new entity?

If this does not help: please post the code snippet of your client.
It might also help to activate SQL logging in persistence.xml and take a look at the SQL statements. You should find an insert statement instead of an update there.

Hope this helps

Wolfgang

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212602#4212602

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212602



More information about the jboss-user mailing list