This content has been marked as final.
Show 4 replies
-
1. Re: cmr field not set in ejbPostCreate()
dsundstrom May 17, 2002 11:38 PM (in response to julien1)That is the way it works. The insert happens between ejbCreate and ejbPostCreate. Foreign key fields will always initially be null.
-
2. Re: cmr field not set in ejbPostCreate()
julien1 May 18, 2002 12:22 AM (in response to julien1)Does that mean that what I want to do is not possible ?
are the two following snippets equivalents ?
1.
A.ejbPostCreate(..)
{
B b = BHome.create(...);
b.setA((A)context.getEJBLocalObject());
}
2.
A.ejbPostCreate(...)
{
B b = BHome.create((A)context.getEJBLocalObject());
}
B.ejbPostCreate(...)
{
setA(a);
}
because case 1 succeeds and case 2 fails :
1 => a.getB() = gives me a local to b
2 => a.getB() = null
It seems that for me both would be equivalent. But
I am not sure. -
3. Re: cmr field not set in ejbPostCreate()
dsundstrom May 18, 2002 1:18 AM (in response to julien1)Oh, this is a different problem. Both should work. Post a bug report at source forge.
-
4. Re: cmr field not set in ejbPostCreate()
julien1 May 18, 2002 1:16 PM (in response to julien1)I have submited a bug report with a test case.