6 Replies Latest reply on Oct 30, 2006 8:31 AM by andydale

    Persistence Problem after upgrading to 4.0.5GA

    schlaufuchs

      Hi there,

      I have switched today from 4.0.4GA to 4.0.5GA and now my persistence classes produce a problem I can't fix for myself.

      These three classes are involved:

      @Entity
      public class ConsumeSchema implements Serializable {
      
       private static final long serialVersionUID = 369451547383041185L;
      
       private String name;
      
       private String comment;
      
       private int id;
      
       @OneToMany(mappedBy = "schema")
       private Set<ArticleConsumeSchema> articleSchemas;
      ...
      
      @Entity
      public class ArticleConsumeSchema extends ArticleConsumeSchemaTemplate {
      
       private static final long serialVersionUID = -5703518518625567286L;
      
      }
      
      
      @Entity
      public class ArticleConsumeSchemaTemplate implements Serializable, Comparable<ArticleConsumeSchemaTemplate> {
      
       private static final long serialVersionUID = 1L;
      
       private long UTFtime;
      
       private long interval;
      
       private int id;
      
       @ManyToOne
       private Article article;
      
       /**
       * Zeigt auf die allgemeine Beschreibung des Schemas.
       */
       @ManyToOne
       private ConsumeSchema schema;
      
      ...
      


      This construct worked well till my upgrade today. (Fresh install of 4.0.5GA in EJB3 config). Now I get:
      ObjectName: persistence.units:jar=core-ejb3.ejb3.jar,unitName=core
       State: FAILED
       Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(articleSchemas)]
      


      What could be wrong?

      Kind regards,
      Kai