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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...