Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      According to the documentation (Part 3, chapter 7, paragraph 6), join criteria can be defined so that a column in the source or target table must have some constant value. The constant value should be specified in the attribute "referencedColumnName" of the @JoinColumn annotation. If the constant is a string then its value should be enclosed first in single quotes and then in double quotes like this:

      @JoinColumn(name="table.column", referencedColumnName="'value'")

      A numeric constant value needs just a single pair of double quotes:
      @JoinColumn(name="table.column", referencedColumnName="2")

      However a practical test shows that both options produce an error.

        Issue Links

          Activity

          Michael Spiro created issue -
          Milosz Tylenda made changes -
          Field Original Value New Value
          Link This issue duplicates OPENJPA-1979 [ OPENJPA-1979 ]
          Rick Curtis made changes -
          Link This issue is cloned as OPENJPA-1979 [ OPENJPA-1979 ]
          Rick Curtis made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Michael Spiro
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development