ok thanks it s working now

remi

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 30, 2003 3:47 PM
Subject: Antwort: 1:1-Mapping


The problem is that your field descriptor and reference descriptor have
the same name attributes. The name of your field-descriptor must
correspond to an Integer property of your class. The name of the reference
descriptor must correspond to an Object (ThemeSurveurImpl) property of
your class.

HTH
Gerhard





R�mi Bars <[EMAIL PROTECTED]>
30.09.2003 15:25
Bitte antworten an "OJB Users List"


        An:     "OJB Users List" <[EMAIL PROTECTED]>
        Kopie:
        Thema:  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]

Reply via email to