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

JsonType should use the actual JDBC type, not OTHER

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.M2
    • Fix Version/s: 4.2.M3
    • Component/s: None
    • Labels:
      None

      Description

      On some DBs there's no native JSON type. So we have to use a VARCHAR, but still map it to the new "org.apache.cayenne.value.Json". This causes exceptions (at least I saw it on Derby). To fix it, all the JsonType methods that hardcode Types.OTHER should pass the actual type to JDBC. It is available as a method parameter

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              andrus Andrus Adamchik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: