OpenJPA
  1. OpenJPA
  2. OPENJPA-213

@Column with precision and scale should result in NUMERIC(precision, scale)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.7, 1.1.0
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: jpa
    • Labels:
      None

      Description

      @Column provides the precision and scale attributes, but there's no (easy) way to figure out how it affects the way OpenJPA works if any. It looks like OpenJPA reads the type of a persistent field and when it's double it maps it to DOUBLE in Derby regardless of the other attributes. When precision and scale are specified, a DDL should use NUMERIC(precision, scale) or its synonim - DECIMAL(precision, scale).

        Issue Links

          Activity

          Jacek Laskowski created issue -
          Patrick Linskey made changes -
          Field Original Value New Value
          Link This issue relates to OPENJPA-205 [ OPENJPA-205 ]
          Michael Dick made changes -
          Assignee Michael Dick [ mikedd ]
          Michael Dick made changes -
          Attachment OPENJPA-213.patch.txt [ 12382372 ]
          Tamas Sandor made changes -
          Affects Version/s 1.1.0 [ 12312344 ]
          Michael Dick made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 2.0.0 [ 12313483 ]
          Fix Version/s 1.3.0 [ 12313326 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Milosz Tylenda made changes -
          Link This issue is related to OPENJPA-1224 [ OPENJPA-1224 ]
          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Michael Dick
              Reporter:
              Jacek Laskowski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development