[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2792?page=c...
]
Ryan Stewart commented on HHH-2792:
-----------------------------------
This is still an issue in 3.3.1. It makes test-writing somewhere between difficult and
nearly impossible. To get around it for now, instead of:
session.delete(foo);
you can use:
Query q = session.createQuery("delete from " + foo.getClass().getSimpleName() +
" where id = ?");
q.setParameter(0, foo.getId());
q.executeUpdate();
This is very annoying!
Session.delete is validate all fields are null
----------------------------------------------
Key: HHH-2792
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2792
Project: Hibernate Core
Issue Type: Bug
Components: core
Reporter: Daniel Passos
session.delete operation would not have to validate if the fields are null
The problem in DefaultDeleteEventListener.deleteEntity -> Nullability.checkNullability
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira