JBoss Community

Hibernate Tools does not support ElementCollection ?

created by nimo stephan in JBoss Tools - View the full discussion

I have something like this:

 

@ElementCollection
      @CollectionTable(
            name="PHONE"
      )
      @Column(name="PHONE_NUMBER")
      private List<String> phones;

 

within an entity. The Tables are all successfully generated by JPA (Hibernate).

 

However, when opening the Hibernate Tools SessionFactory, I get this error:

 

"Could not determine type for java.util.list for table, at table MY_TABLE, for columns: [org.hibernate.mapping.Column(PHONE_NUMBER)]"

 

 

Does this error come from Hibernate Tools or Hibernate ? Hibernate still generates this tables without complaining. But Hibernate Tools complains.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community