users@glassfish.java.net

Re: Simple JPA demo for Java SE

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Apr 2007 19:11:32 PDT

As it is mentioned in the thread, if you add @GeneratedValue(strategy=GenerationType.IDENTITY) to the 'testPersonId' field, the database will generate the value for you.
[Message sent by forum member 'mvatkina' (mvatkina)]

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