users@glassfish.java.net

Re: how to restrict persistence from db identity column insertion

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Sep 2007 14:06:16 PDT

Did you find the answer? If you want the database to populate the value into the PK column, you need to annotate your @Id field/property with the appropriate @GeneratedValue strategy.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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