Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2734

Improve support for the DECIMAL type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.2.RC1
    • Database integration
    • None

    Description

      SQL type DECIMAL could essentially represent any numeric type. For now Cayenne doesn't have any special treatment for it. It could lead to some minor problems if this type is used.

      For instance, PK that is defined like DECIMAL(38,0) would generate Integer value, though it could be treated as Long. And when loaded from the DB it would be set to BigDecimal

      We could add some special logic, so it would be more convenient to use.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m