OpenJPA
  1. OpenJPA
  2. OPENJPA-525

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.1.1, 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; }
      1. OPENJPA525.patch
        3 kB
        Amy Yang
      2. OPENJPA525_1_1_x.patch
        3 kB
        Amy Yang
      3. OPENJPA-525.2.patch
        3 kB
        Albert Lee
      4. OPENJPA-525.3.patch
        2 kB
        Milosz Tylenda
      5. OPENJPA-525-3-branch1.1.x.patch
        4 kB
        Amy Yang

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development