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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.7, 1.1.0
    • 1.3.0, 2.0.0-M2
    • jpa
    • 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).

      Attachments

        1. OPENJPA-213.patch.txt
          11 kB
          Michael Dick

        Issue Links

          Activity

            People

              mikedd Michael Dick
              jlaskowski Jacek Laskowski
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: