Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M2
    • Component/s: None
    • Labels:
      None
    1. OPENJPA-931.patch
      16 kB
      Fay Wang
    2. OPENJPA-931-testcase.patch
      24 kB
      Fay Wang

      Activity

      Hide
      Fay Wang added a comment -

      This patch is for the implementation of spec 2.4.1.1 (p.27):

      If an Id attribute in the entity is a many-to-one or one-to-one reference to a parent entity, the type of the corresponding attribute in the id class must be the same Java type as the id class or embedded id of the parent entity (if the parent entity has a composite primary key) or the type of the Id attribute of the parent entity (if the parent entity has a simple primary key).

      Example 5 Case(a) and Example 6 Case (a) demonstrate the above rules.

      Show
      Fay Wang added a comment - This patch is for the implementation of spec 2.4.1.1 (p.27): If an Id attribute in the entity is a many-to-one or one-to-one reference to a parent entity, the type of the corresponding attribute in the id class must be the same Java type as the id class or embedded id of the parent entity (if the parent entity has a composite primary key) or the type of the Id attribute of the parent entity (if the parent entity has a simple primary key). Example 5 Case(a) and Example 6 Case (a) demonstrate the above rules.

        People

        • Assignee:
          Fay Wang
          Reporter:
          Fay Wang
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development