db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "armin waibel (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-27) [ODMG] Foreign key violation
Date Wed, 11 May 2005 07:15:04 GMT
     [ http://issues.apache.org/jira/browse/OJB-27?page=comments#action_64995 ]
     
armin waibel commented on OJB-27:
---------------------------------

Could you give us an example when the issue arise. A unit test or some pseudo code, so that
we can reproduce your test. There is a known ordering problem with bidirectional/circular
1:1 references in odmg (OJB-18) could this be the case? Did you check the generated SQL (e.g.
via P6Spy), what's the reason for the FK violation?

> [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


Mime
View raw message