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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 2.0.0-M2
    • 1.2.1, 1.3.0, 2.0.0-M2
    • None
    • 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.

      Attachments

        1. OPENJPA-811.patch
          2 kB
          Dinkar Rao

        Issue Links

          Activity

            People

              mikedd Michael Dick
              dinkar Dinkar Rao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: