Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Cannot Reproduce
-
1.0.3
-
None
-
None
Description
Hello,
I think i found an OJB bug, i'am using OJB 1.0.3 with ODMG API, and there is a foreign key violation, when i try to make an object persistent.
Here is the reference to the post in the mailing list
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=ojb-user@db.apache.org&msgNo=16236
The field reponsible for this is the following one, in the class DocumentBaseContent
/**
- location
- @ojb.reference foreignkey="locationId" auto-update="none" auto-delete="none" database-foreignkey="false"
*/
private Location locationsRoot = null;
If i do not add database-foreignkey="false" i get the violation, if i add it everything just works fine.
I'am joining the three classes :
DocumentBase the class that i'am trying to persists and and that holds a reference
to DocumentBaseContent which holds a reference to a Location that is the
root of a Tree of Location ojbects.
Hum, i don't know if i'am understandable and if it is really testable, but if you need me to join other things like a test case, or trying to remove the references to other classes, or attach all the class hierarchy, i'll do it.
Jean-Yves