[jboss-user] [EJB 3.0] - Persistence Problem after upgrading to 4.0.5GA

SchlauFuchs do-not-reply at jboss.com
Sun Oct 29 19:50:55 EST 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981641#3981641

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981641



More information about the jboss-user mailing list