java - Support for @ElementCollection in hibernate tools hbm2ddl -
i trying use jpa2 feature @elementcollection list of strings in entity. using hibernate3-maven-plugin carry out hbm2ddl task.
however seems version of hibernate tools used plugin not know how deal @elementcollection annotation can give me pointers version of hibernate tools need use not case. should case of specifying correct version of hibernate tools?
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>hibernate3-maven-plugin</artifactid> <version>2.2</version> <dependencies> <dependency> <groupid>postgresql</groupid> <artifactid>postgresql</artifactid> <version>8.3-603.jdbc4</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-tools</artifactid> <version>3.2.4.ga</version> <type>jar</type> <scope>runtime</scope> </dependency>
[info] trace org.hibernate.mappingexception: not determine type for: java.util.list, @ table: mystuff, columns: [org.hibernate.mapping.column(stuffs)]
thanks
i think have version mismatch plugin. hibernate3-maven-plugin has dependency on hibernate 3.3.1.ga.
you try , ignore on hibernate3-maven-plugin , correct version (3.5.3 final might work) manually.
maybe setting annotation on field instead of setter might well.
Comments
Post a Comment