[
http://jira.codehaus.org/browse/MHIBERNATE-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240363#action_240363
]
Francisco Lozano commented on MHIBERNATE-109:
---------------------------------------------
If we use @CollectionOfElements instead of @ElementCollection, our
Map<String,Object> gets proper DDL generated.
If we use @ElementCollection, we get the error.
@ElementCollection private Map<String,String> data = new
HashMap<String,String>();
[ERROR] Failed to execute goal
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl (default) on project
identity-server: Execution default of goal
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl failed: Could not
determine type for: java.util.Map, at table: Permission, for columns:
[org.hibernate.mapping.Column(data)] -> [Help 1]
> Upgrade to latest Hibernate 3.5 to support JPA 2 features
> ---------------------------------------------------------
>
> Key: MHIBERNATE-109
> URL: http://jira.codehaus.org/browse/MHIBERNATE-109
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Improvement
> Components: annotationconfiguration, jpaconfiguration
> Affects Versions: 2.2
> Environment: Vista / JDK 1.6 / Hibernate 3.5
> Reporter: Jeroen van Vianen
> Assignee: Johann Reyes
>
> I cannot run goal hibernate3:hbm2ddl if I annotate my entities with JPA 2
> annotations like @javax.persistence.ElementCollection.
> The following exception is thrown:
> org.hibernate.MappingException: Could not determine type for: java.util.List,
> at table: XYZ, for columns: [org.hibernate.mapping.Column(XYZ)]
> I assume upgrading to Hibernate 3.5 will fix this problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email