Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-163

@OneToOne should not be legal as back-pointer of @OneToMany

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.0, 0.9.6
    • None
    • diagnostics, jpa
    • None

    Description

      According to the JPA spec, the opposite side of a @OneToMany must be a @ManyToOne. OpenJPA allows a @OneToOne to be used instead. This does not seem to add any value, and reduces portability of client applications.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcl Patrick Linskey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: