[jbosstools-issues] [JBoss JIRA] (JBIDE-9375) JPA: validate @ForeignKey inverseName for ManyToMany mapping
Isaac Rooskov (JIRA)
jira-events at lists.jboss.org
Tue Apr 10 23:17:47 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-9375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Isaac Rooskov updated JBIDE-9375:
---------------------------------
Release Notes Docs Status: Documented as Feature Request
Writer: irooskov
Release Notes Text: @ForeignKey annotation can now be validated for the inverseName property of ManyToMany relationships.
> JPA: validate @ForeignKey inverseName for ManyToMany mapping
> ------------------------------------------------------------
>
> Key: JBIDE-9375
> URL: https://issues.jboss.org/browse/JBIDE-9375
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: hibernate
> Affects Versions: 3.3.0.M2
> Reporter: Dmitry Geraskov
> Assignee: Jiri Peterka
> Labels: new_and_noteworthy
> Fix For: 3.3.0.M3
>
>
> @ForignKey annotations can be used in OneToMany, ManyToOne, and OneToOne
> relationships, ManyToMany relationships.
> Inverse name should be validated only in ManyToMany relationships at owner side (not owner side has mappedBy attribute).
> Test case:
> 1. Create JPA project with Hibernate platform
> 2. Create 2 Entities with many to many reference
> 3. Add @ForeignKey(name="x", inverseName="") to both sides
> Check that error appeared and only on the owning size.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list