users@glassfish.java.net

Re: clever entity updates

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Jul 2010 04:13:00 PDT

I have added a method finding entities by unique value and I am setting current entity with found one instead of creating new one. Thus all updates should apply to existing rather than new but applications still tries to insert new record into the table instead of do an update. Why ?
[Message sent by forum member 'smoczyna']

http://forums.java.net/jive/thread.jspa?messageID=477613