You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by "Jean-Yves Sironneau (JIRA)" <ji...@apache.org> on 2005/04/19 16:01:52 UTC
[jira] Updated: (OJB-27) [ODMG] Foreign key violation
[ http://issues.apache.org/jira/browse/OJB-27?page=all ]
Jean-Yves Sironneau updated OJB-27:
-----------------------------------
Attachment: DocumentBaseContent.zip
> [ODMG] Foreign key violation
> ----------------------------
>
> Key: OJB-27
> URL: http://issues.apache.org/jira/browse/OJB-27
> Project: OJB
> Type: Bug
> Versions: 1.0.3
> Reporter: Jean-Yves Sironneau
> Priority: Minor
> Attachments: DocumentBaseContent.zip
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org