-
1. Re: Hibernate Tools does not support ElementCollection ?
dgolovin Sep 23, 2010 1:54 PM (in response to nimo22)Do you have a stacktrace for this error?
-
2. Re: Hibernate Tools does not support ElementCollection ?
nimo22 Sep 24, 2010 2:49 AM (in response to dgolovin)Unfortunately not. There is not stacktrace when compiling and deploying the application. The ElementCollection is working.
Only when opening the HQL-Editor the error comes. I go to "rebuild configuration". Then the branch of configuration, session factory and database is opened. The error is displayed in the SessionFactory branch:
"<SessionFactory error: Could not determine type for java.util.list for table, at table MY_TABLE, for columns: [org.hibernate.mapping.Column(PHONE_NUMBER)]"
-
3. Re: Hibernate Tools does not support ElementCollection ?
topping Oct 28, 2010 8:53 PM (in response to dgolovin)How about this one:
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: mauswerks] Unable to build EntityManagerFactoryat org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)... 63 moreCaused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: Address, for columns: [org.hibernate.mapping.Column(addressLines)]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.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)... 68 moreCaused by: javax.persistence.PersistenceException: [PersistenceUnit: xxx] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
... 63 more
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: Address, for columns: [org.hibernate.mapping.Column(addressLines)]
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.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
... 68 more