-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: null index column for collection
PostPosted: Mon Sep 04, 2006 10:17 am 
Newbie

Joined: Fri Sep 02, 2005 10:21 am
Posts: 11
Location: Fribourg, SWITZERLAND
Hibernate version: 3.0

Bonjour,

J'ai un problème de mapping de List indexée.

Voici le mapping:

Code:
   <class name="IntendedCourseOfStudy" table="U2000P.ET_DA_VOIE_ETUDE"
      lazy="true">

      <id name="id" column="ID">
         <generator class="sequence">
            <param name="sequence">SEQ_ET_DA_VOIE_ETUDE_PK</param>
         </generator>
      </id>

      <many-to-one name="availableCourseOfStudy"
         column="ELEMENT_ELE_NUMERO" />

      <many-to-one name="student" column="ET_DA_ETUDIANT_ID"
         class="Student" />

      <list name="intendedBranches" cascade="all-delete-orphan" lazy="true">
         <key column="ET_DA_VOIE_ETUDE_ID" not-null="true"
            update="false" />
         <list-index column="INPUT_ORDER" base="1" />
         <one-to-many class="IntendedBranch" />
      </list>

   </class>

   <class name="IntendedBranch" table="U2000P.ET_DA_BRANCHE"
      lazy="true">

      <id name="id" column="ID">
         <generator class="sequence">
            <param name="sequence">SEQ_ET_DA_BRANCHE_PK</param>
         </generator>
      </id>

      <property name="order" column="INPUT_ORDER" type="integer"
         not-null="true" insert="false" update="false" />

      <many-to-one name="availableBranch" column="ELEMENT_ELE_NUMERO"
         property-ref="eleNo" class="AvailableBranch" />

      <many-to-one name="intendedCourseOfStudy"
         column="ET_DA_VOIE_ETUDE_ID" class="IntendedCourseOfStudy"
         not-null="true" insert="false" update="false" />



   </class>



L'erreur suivante est générée: Exception Hibernate :org.hibernate.HibernateException: null index column for collection: ch.unifr.sis.inscruni.business.IntendedCourseOfStudy.intendedBranches

Avez-vous une idée?

Merci beaucoup.
Cedric


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.