-
1. Re: Unidirectional one-to-many and ejbCreate()
juhalindfors Jul 17, 2003 2:52 AM (in response to piotr)Remove the not null constraint in your DB schema? Is this an existing db schema or did JBossCMP create it for you?
-
2. Re: Unidirectional one-to-many and ejbCreate()
piotr Jul 17, 2003 10:34 AM (in response to piotr)I use an existing database and I can't remove existing constraints.
-
3. Re: Unidirectional one-to-many and ejbCreate()
juhalindfors Jul 17, 2003 1:34 PM (in response to piotr)Which version of JBoss are you using? I think there is a delayed insert in 3.2.x (though I haven't used it, and didn't check the change notes right at this time). Try if you can find out anything about it on the forums/release notes.
-
4. Re: Unidirectional one-to-many and ejbCreate()
karamon Jul 21, 2003 12:55 AM (in response to piotr)Hi,
I have same problem on JBoss 3.2.1. What I must do if I have the NOT NULL constraint on CMR? In this case
I can't use the constraints?
If I sets the CMR fields in ejbCreate (not collections), I have error that talks about specification violation.
If we looks specification we can see that this isn't violation, because only collections we must sets in
ejbPostCreate. I don't understood why I didn't sets
the CMR field that represents the single entity in ejbCreate method.
Am I wrong? Can anybody explain this?
I try find out the delayed insert. But I can't do this. I think it's absent there.
Have anybody any decisions of this problem? -
6. Re: Unidirectional one-to-many and ejbCreate()
karamon Jul 22, 2003 8:57 AM (in response to piotr)Thanx of lot... But this decision isn't pretty... :(
On my mind, better just to skip this checking, like to WL. In any case thank You for reply.