Using identity, you need to have an auto_increment column and if you have Toplink create the tables for you, then it will add the auto_increment to the column specified as the @ID.
[Message sent by forum member 'lancea' (lancea)]
http://forums.java.net/jive/thread.jspa?messageID=244835