1 Reply Latest reply on Sep 8, 2005 11:41 AM by Emmanuel Bernard

    Mapping Exception ... but why ?

    pascal jeannenot Newbie

      Hello,

      I've wrote three entity class using the composite pattern.

      I've tried to map thes classes in database but i have always the following error :

      org.hibernate.MappingException: Could not determine type for: java.util.List, for columns:[org.hibernate.mapping.Column(groupesEtEditeurs)]

      This is a part of my code for the mapping :

      @Entity
      @Table(name = "groupesetediteurs")
      @Inheritance(strategy = InheritanceType.JOINED)
      public abstract class EGroupesEtEditeurs
      implements Serializable {
      ...
      @OneToMany(cascade=CascadeType.ALL)
      @JoinColumn(name="parent_id")
      private List groupesEtEditeurs;

      ...
      }

      Thank you for your help,


      Pascal.