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

Inserts new entity with NULL value for Clob column actually inserts empty string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.2, 1.1.0, 1.2.1, 2.0.0
    • Fix Version/s: 1.2.0, 1.3.0, 2.0.0-M3
    • Component/s: None
    • Labels:
      None
    • Environment:
      OpenJPA 1.0.0, 1.0.2
      Oracle XE 10g (JDBC driver 10.2.0.3.0
      JRE 1.5.0_13
    • Patch Info:
      Patch Available

      Description

      Inserts new entity with NULL value for Clob column with "nullable = true" actually inserts empty string as the value!

      Here's the persistence class:
      public class Exam... {
      @Lob
      private String text;
      }

        Attachments

        1. OPENJPA-525-3-branch1.1.x.patch
          4 kB
          Amy Yang
        2. OPENJPA-525.3.patch
          2 kB
          Milosz Tylenda
        3. OPENJPA-525.2.patch
          3 kB
          Albert Lee
        4. OPENJPA525_1_1_x.patch
          3 kB
          Amy Yang
        5. OPENJPA525.patch
          3 kB
          Amy Yang

          Issue Links

            Activity

              People

              • Assignee:
                milosz Milosz Tylenda
                Reporter:
                frankca Frank Le
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: