i only use integer in my repository.xml, and i use int in my classes ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Tuesday, September 30, 2003 3:28 PM Subject: Re: 1:1-Mapping
> Have you tried using int, instead of Integer? > > ----- Original Message ----- > From: "R�mi Bars" <[EMAIL PROTECTED]> > To: "OJB Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, September 30, 2003 9:25 AM > Subject: 1:1-Mapping > > > > Hi all > > > > i m trying to do a 1:1 mapping on rc4 with the xml file at the end > > when i try to store a Catalogue i get this error : > > > > Thanks for ur help > > > > > > org.apache.ojb.broker.PersistenceBrokerException: > > org.apache.ojb.broker.PersistenceBrokerException: > > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: > > java.lang.Integer not found in OJB Repository > > > > at org.apache.ojb.odmg.TransactionImpl.assignReferenceFKs(Unknown Source) > > > > at org.apache.ojb.odmg.TransactionImpl.lock(Unknown Source) > > > > at > > > fr.ouestfrance.sip.cezan.framework.persistance.odmg.OJB_ODMG_PersistentManag > > er.insert(OJB_ODMG_PersistentManager.java:126) > > > > at > > > fr.ouestfrance.sip.cezan.framework.persistance.odmg.OJB_ODMG_CezanGestionnai > > reDAO.create(OJB_ODMG_CezanGestionnaireDAO.java:55) > > > > at > > > fr.ouestfrance.sip.cezan.serveur.catalogue.work.GestionnaireCatalogueServeur > > Impl.main(GestionnaireCatalogueServeurImpl.java:165) > > > > Caused by: org.apache.ojb.broker.PersistenceBrokerException: > > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: > > java.lang.Integer not found in OJB Repository > > > > at org.apache.ojb.odmg.TransactionImpl.assertFkAssignment(Unknown Source) > > > > ... 5 more > > > > > > <class-descriptor class='ThemeServeurImpl' table='Theme'> > > <field-descriptor > > name="id" > > column="id" > > jdbc-type="INTEGER" > > primarykey="true" > > autoincrement="true" > > /> > > <field-descriptor name='_Nom' column='_Nom' > jdbc-type='VARCHAR'/> > > </class-descriptor> > > <class-descriptor class='CatalogueServeurImpl' table='Catalogue'> > > <field-descriptor > > name="id" > > column="id" > > jdbc-type="INTEGER" > > primarykey="true" > > autoincrement="true" > > /> > > <field-descriptor name="_ThemeParentId" column="Theme_id" > > jdbc-type="INTEGER"/> > > <reference-descriptor > > name="_ThemeParentId" > > class-ref="ThemeServeurImpl" > > auto-retrieve="true" > > auto-update="true" > > auto-delete="true" > > > > > <foreignkey field-ref="id" /> > > </reference-descriptor> > > </class-descriptor> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
