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

          Dinkar Rao created issue -
          Hide
          Dinkar Rao added a comment -

          Submitting patch provided by Pinaki.

          Show
          Dinkar Rao added a comment - Submitting patch provided by Pinaki.
          Dinkar Rao made changes -
          Field Original Value New Value
          Attachment OPENJPA-811.patch [ 12395200 ]
          Michael Dick made changes -
          Link This issue is part of OPENJPA-665 [ OPENJPA-665 ]
          Albert Lee made changes -
          Assignee Albert Lee [ allee8285 ]
          Albert Lee made changes -
          Fix Version/s 2.0.0 [ 12313483 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.2.0 [ 12313102 ]
          Hide
          Michael Dick added a comment -

          Assigning to me to merge fix to 1.3.x.

          Show
          Michael Dick added a comment - Assigning to me to merge fix to 1.3.x.
          Michael Dick made changes -
          Resolution Fixed [ 1 ]
          Assignee Albert Lee [ allee8285 ] Michael Dick [ mikedd ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Michael Dick made changes -
          Fix Version/s 1.2.1 [ 12313328 ]
          Fix Version/s 1.3.0 [ 12313326 ]
          Michael Dick made changes -
          Fix Version/s 1.2.0 [ 12313102 ]
          Michael Dick made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          2h 58m 1 Albert Lee 03/Dec/08 21:43
          Resolved Resolved Reopened Reopened
          94d 20h 16m 1 Michael Dick 08/Mar/09 17:59
          Reopened Reopened Closed Closed
          8d 22h 21m 1 Michael Dick 17/Mar/09 16:21

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development