I use derby and have a table with primary key generated as follows:
ID INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY
What I expect is when I create an entry the ID field will be automatically generated by the database and will be incremented each time.
When I persist a new object what value should the id field hold ?
(complete newbie to jpa, sorry if even the question is wrong :)
[Message sent by forum member 'alexk69' (bermuda99_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=379905