Re: [JBoss-user] ejbCreate violating database 'NOT NULL' constraints(foreign keys)

2002-11-08 Thread Dain Sundstrom
There is a patch that supposedly fixes this, but I have not looked at it yet. -dain Alex Loubyansky wrote: 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

Re: [JBoss-user] ejbCreate violating database 'NOT NULL' constraints (foreign keys)

2002-11-08 Thread Alex Loubyansky
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 in

[JBoss-user] ejbCreate violating database 'NOT NULL' constraints (foreign keys)

2002-11-08 Thread Michael Angelo Libio
How can I avoid violating NOT NULL constraints on foreign keys that are mapped to cmr-fields? I know that we're not suppose to set cmr fields during the ejbCreate method of an entity bean. However, it seems that the call to "insert into" is executed before the cmr fields are set (ejbPostCreate