OpenJPA
  1. OpenJPA
  2. OPENJPA-2027

Metamodel genereated at runtime expects ListAttribute for all arrays - not just PersistentCollections.

    Details

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

      Description

      This is the runtime portion of the problem reported in OPENJPA-2025.

      The problem here is that every array is treated as a list attribute. If the array is annotated with the @PersistentCollection annotation it makes sense to treat it like the other collection types, but in the case of an un-annotated byte[] (blob), or char[] (varchar), it makes more sense to use a SingularAttribute.

        Issue Links

          Activity

          Michael Dick created issue -
          Michael Dick made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Michael Dick made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Michael Dick made changes -
          Link This issue blocks OPENJPA-2025 [ OPENJPA-2025 ]
          Albert Lee made changes -
          Link This issue relates to OPENJPA-2060 [ OPENJPA-2060 ]
          Kevin Sutter made changes -
          Link This issue is related to OPENJPA-2070 [ OPENJPA-2070 ]
          Hide
          ASF subversion and git services added a comment -

          Commit 1469452 from hthomann
          [ https://svn.apache.org/r1469452 ]

          OPENJPA-2027: Metamodel genereated at runtime expects ListAttribute for all arrays - not just PersistentCollections. Back-ported Mike Dick's trunk changes to 2.1.x; made Compatibility property default to true.

          Show
          ASF subversion and git services added a comment - Commit 1469452 from hthomann [ https://svn.apache.org/r1469452 ] OPENJPA-2027 : Metamodel genereated at runtime expects ListAttribute for all arrays - not just PersistentCollections. Back-ported Mike Dick's trunk changes to 2.1.x; made Compatibility property default to true.
          Gavin made changes -
          Link This issue blocks OPENJPA-2025 [ OPENJPA-2025 ]
          Gavin made changes -
          Link This issue is depended upon by OPENJPA-2025 [ OPENJPA-2025 ]

            People

            • Assignee:
              Michael Dick
              Reporter:
              Michael Dick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development