OpenJPA
  1. OpenJPA
  2. OPENJPA-811

With Oracle, OpenJPA allows setting non-nullable field to null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 2.0.0-M2
    • Fix Version/s: 1.2.1, 1.3.0, 2.0.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      An entity has a field defined as follows:

      @Column(nullable=false)
      private Object nonNullableObject;

      Using Oracle, it is possible to set the value of this column to null. OpenJPA will not complain, but will instead store whatever is returned by oracle.sql.BLOB.empty_lob().

      An exception should be thrown instead, because the field has been defined as non-nullable.

        Issue Links

          Activity

            People

            • Assignee:
              Michael Dick
              Reporter:
              Dinkar Rao
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development