That is the way it works. The insert happens between ejbCreate and ejbPostCreate. Foreign key fields will always initially be null.
Does that mean that what I want to do is not possible ?
are the two following snippets equivalents ?
B b = BHome.create(...);
B b = BHome.create((A)context.getEJBLocalObject());
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.
Oh, this is a different problem. Both should work. Post a bug report at source forge.
I have submited a bug report with a test case.