OpenJPA
  1. OpenJPA
  2. OPENJPA-1724

Allow MappingTool to generate DDL SQL files in a different encoding than the local JVM

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3.0, 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: jdbc, tooling
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Handle case where Java code is using UTF-8 encoded characters and we want the output DDL files to remain in UTF-8, instead of default to unicode UTF-16.

      1. OPENJPA-1724.diff
        16 kB
        Donald Woods
      2. OPENJPA-1724.diff
        19 kB
        Donald Woods

        Issue Links

          Activity

          Hide
          Michael Dick added a comment -

          Closing issues which have been resolved for some time. If the problem persists, please reopen.

          Show
          Michael Dick added a comment - Closing issues which have been resolved for some time. If the problem persists, please reopen.
          Hide
          Donald Woods added a comment -

          Committed revision 964921.

          Show
          Donald Woods added a comment - Committed revision 964921.
          Hide
          Donald Woods added a comment -

          Now includes doc updates

          Show
          Donald Woods added a comment - Now includes doc updates
          Hide
          Donald Woods added a comment -

          New "-sqlEncode" or "-se" flag for MappingTool, which allows the user to specify a Java charset to use (like UTF-8), instead of the current JVM locale.

          Added new mapping sample under openjpa-examples which shows how to use MappingTool from an ANT task, along with two entities which one has normal ASCII characters and the other has Unicode escaped character to show the output differences when "-sqlEncode UTF-8" is used.

          Show
          Donald Woods added a comment - New "-sqlEncode" or "-se" flag for MappingTool, which allows the user to specify a Java charset to use (like UTF-8), instead of the current JVM locale. Added new mapping sample under openjpa-examples which shows how to use MappingTool from an ANT task, along with two entities which one has normal ASCII characters and the other has Unicode escaped character to show the output differences when "-sqlEncode UTF-8" is used.

            People

            • Assignee:
              Donald Woods
              Reporter:
              Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development