[ http://issues.apache.org/jira/browse/OJB-27?page=all ]
     
Armin Waibel closed OJB-27:
---------------------------

    Fix Version: 1.0.4
     Resolution: Cannot Reproduce

Can't reproduce the problem using a 1:1 reference.
It is possible to disable the object ordering in odmg-api implementation and to 
use user-controlled object ordering. this will be a workaround for all 
ordering/FK issues.

> [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
>      Fix For: 1.0.4
>  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/[EMAIL PROTECTED]&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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to