look for jboss-Patches-630707 (for JBoss 3.0.x) Check also for "Deffered constraint" (ensure constraints at commit instead of at each SQL order) if you are using Oracle. Its working fine for me.
Spam "Alex Loubyansky" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > Hello Michael, > > MAL> How can I avoid violating NOT NULL constraints on foreign keys that are > MAL> mapped to cmr-fields? > > there is no way for now. > > MAL> I know that we're not suppose to set cmr fields during the ejbCreate method > MAL> of an entity bean. However, it seems that the call to "insert into" is > MAL> executed before the cmr fields are set (ejbPostCreate). Is there a way > MAL> around this? I'd like to keep my database schema the way it is (with it's > MAL> relationship intact). > > -- > Best regards, > Alex Loubyansky > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user