Hello,

I have a problem (probably simple) trying to persist a Class looking like this :

.....

* @ojb.class proxy="dynamic"
*
* @ojb.field name="locationId" jdbc-type="VARCHAR" nullable="false"
*
* @author jys
*/
public class DocumentBaseContent implements IDocumentBaseContent {
.....


/**
* location
*
* @ojb.reference foreignkey="locationId" auto-update="none" auto-delete="none"
*/
private Location locationsRoot = null;


.....


}

I always have a violation of foreign key constraint, because OJB seem's to try to persists instance of this class before the instance of Location linked with it.

Is that normal ? Do I have to persists the Location object first, or is OJB supposed to be able to deal with that ?

Thanks for your help.

Jean-Yves

P.S:


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to