[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-9365) JPA: @ManyToMany annotation is not supported with Hibernate platform
Jiri Peterka (JIRA)
jira-events at lists.jboss.org
Thu Sep 8 09:57:26 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiri Peterka closed JBIDE-9365.
-------------------------------
Verified in JBDS 5.0.M3, H28, L64
> JPA: @ManyToMany annotation is not supported with Hibernate platform
> --------------------------------------------------------------------
>
> Key: JBIDE-9365
> URL: https://issues.jboss.org/browse/JBIDE-9365
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 3.3.0.M2
> Reporter: Dmitry Geraskov
> Assignee: Dmitry Geraskov
> Priority: Blocker
> Fix For: 3.3.0.M3
>
>
> Test Case:
> 1. Create JPA project with Hibernate Platform
> 2. Create 2 Entities with @ManyToMany mapping
> 3. Open Jpa Details view:
> Failed: It should not be empty
> 4. create additional fieldin Entity without annotations
> 5. In Jpa Details view click on "here" link.
> 6. select ManyToMapping
> 7. Observe exception:
> Caused by: java.lang.IllegalArgumentException: invalid mapping key: manyToMany
> at org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.getSpecifiedMappingDefinition(AbstractJavaPersistentAttribute.java:325)
> at org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.setMappingKey_(AbstractJavaPersistentAttribute.java:216)
> at org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.setMappingKey(AbstractJavaPersistentAttribute.java:195)
> at org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaPersistentAttribute.setMappingKey(AbstractJavaPersistentAttribute.java:1)
> at org.eclipse.jpt.jpa.ui.internal.details.PersistentAttributeMapAsComposite$1.morphMapping(PersistentAttributeMapAsComposite.java:82)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list