Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9375

JPA: validate @ForeignKey inverseName for ManyToMany mapping

    XMLWordPrintable

Details

    • @ForeignKey annotation can now be validated for the inverseName property of ManyToMany relationships.
    • Documented as Feature Request

    Description

      @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.

      Attachments

        Issue Links

          Activity

            People

              jpeterka_jira Jiri Peterka (Inactive)
              dgeraskov Dmitry Geraskov (Inactive)
              Isaac Rooskov Isaac Rooskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: