[jboss-user] [JBoss Tools] New message: "Re: Support for JPA 2.0 resp. Hibernate 3.5"
Juergen Zimmermann
do-not-reply at jboss.com
Thu Mar 4 05:40:19 EST 2010
User development,
A new message was posted in the thread "Support for JPA 2.0 resp. Hibernate 3.5":
http://community.jboss.org/message/529861#529861
Author : Juergen Zimmermann
Profile : http://community.jboss.org/people/Juergen.Zimmermann
Message:
--------------------------------------------------------------
See the stacktrace below. The relevant attribute definition is as follows:
@Entity
@Table(name="kunde")
public abstract class Kunde implements java.io.Serializable {...}
@Entity
@DiscriminatorValue("P")
public class Privatkunde extends Kunde
...
@ElementCollection // JPA 2.0
@CollectionTable(name="kunde_hobby", http://community.jboss.org/mailto:joinColumns=@JoinColumn(name="kunde_fk")) // JPA 2.0
@Column(name="hobby_fk")
private List<Integer> hobbiesDB;
The stacktrace:
org.hibernate.MappingException: Could not determine type for: java.util.List, at table: kunde, for columns: [org.hibernate.mapping.Column(hobby_fk)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
at org.hibernate.mapping.Property.isValid(Property.java:207)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
at org.hibernate.mapping.SingleTableSubclass.validate(SingleTableSubclass.java:66)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:554)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:98)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:549)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529861#529861
More information about the jboss-user
mailing list