Thank you for your reply.
I have just noticed that the generated entity class was not annotated properly for a generated primary key, even though that was specified in the database schema used to generate the class (using NetBeans). A moment, please, while I figure out the correct annotation.
[Message sent by forum member 'bclyon' (bclyon)]
http://forums.java.net/jive/thread.jspa?messageID=259971