Hello,
I am trying to figure out a problem with my
JBoss installation. I have a number of 1-M relationships defined and when I try to create data that contains a foreign key, I always get errors like this:
I am using a third-party code generator that creates the deployement descriptors and all that stuff for me. I'm thinking that the problem lies somewhere there but I can't see what it is.
The symptom I am seeing is that the child elements are saved before the parent element. Since the constraints are defined on the database server (and I am not at liberty to remove them) it complains because the foreign key of the child points to a as yet) non-existent parent. I don't understand what determines the storage order so I'm not sure what to change to make the parent be stored befor the child(ren).
Can anyone help?
Thanks,
L