users@glassfish.java.net

Re: TopLink-Essentials and "parent key not found'

From: <glassfish_at_javadesktop.org>
Date: Sun, 22 Jul 2007 20:38:30 PDT

Hi,<br/>
I have similar situation but I'm trying to use GenerationType.IDENTITY instead of GenerationType.SEQUENCE.<br/> I wondering if there is particular reason to use SEQUENCE instead of IDENTITY in this case.<br/> Also I don't understand exactly how SEQUENCE is working.<br/> Is it responsibility of app server or database to run sequence?
<br/>I have the same error that you had before and I don't have any triggers to fix it ;)
<br/>Only difference I have comparing with your example that different generation type.
<br/>Do you think your code can work using IDENTITY generation type?<br/>

<br/>Thank you,<br/>
Vladimir
[Message sent by forum member 'vladperl' (vladperl)]

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