3 Replies Latest reply on Jan 8, 2009 4:20 PM by Adam Warski

    Deleting an entity - Bug?

    Kaizer S Newbie


      If I delete an entity, the values of the deleted entity should also get persisted in my audit table. However, it tries to enter a NULL value throwing an exception -

      Caused by: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("FW_DEV"."COM_CLIENT_M_AUD"."CLIENTTYPECD")

      at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)

      I had a look at the postDeleteMethod in AuditEventListener and it doesnt seem to do anything with the deletedState. It should be persisting this state in the Audit table.

      Please let me know if this is a bug or if I'm missing something.