From: <leg...@at...> - 2003-10-31 21:27:14
|
The following comment has been added to this issue: Author: John Kristian Created: Fri, 31 Oct 2003 3:26 PM Body: The second attachment named nullable.diff-u is the one that I find helpful. The first does not help. (Sorry about that.) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-445 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-445 Summary: Can't delete object with property that is not nullable and not updateable Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: John Kristian Created: Fri, 31 Oct 2003 3:21 PM Updated: Fri, 31 Oct 2003 3:24 PM Environment: WebLogic 8.1, Windows XP, Microsoft SQL Server Description: When attempting to delete an object with a property that is not nullable and also not updateable, Hibernate throws an exception like: java.lang.NullPointerException: not-null property references a null or transient value: role at net.sf.hibernate.impl.SessionImpl.nullifyTransientReferences([Ljava.lang.Object;[Lnet.sf.hibernate.type.Type;ZLjava.lang.Object;[Z[Ljava.lang.String;)V(SessionImpl.java:900) at net.sf.hibernate.impl.SessionImpl.doDelete(Ljava.lang.Object;Lnet.sf.hibernate.impl.SessionImpl$EntityEntry;Lnet.sf.hibernate.persister.ClassPersister;)V(SessionImpl.java:1120) at net.sf.hibernate.impl.SessionImpl.delete(Ljava.lang.Object;)V(SessionImpl.java:1056) This problem occurs when the deleted object's property value is not null. But the value is not copied to SessionImpl.doDelete.entry.deletedState, because the property is not updateable. The patch nullable.diff-u (attached) helps, I find. --------------------------------------------------------------------- JIRA INFORMATION: 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.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |