Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Dev List »

[hibernate-dev] Need help to fix HHH-1570

Julien HENRY

2010-07-23

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Hibernate dev team,

I am working on a patch to fix HHH-1570. The patch is highly inspired from the
old patch attached to the JIRA issue with a few modifications. After applying my
patch the test case (see patch HHH-1570-it.patch attached to the issue) runs
fine but there is a regression on another test: FumTest.testKeyManyToOne()

Here is the error on the test:
testKeyManyToOne(org.hibernate.test.legacy.FumTest) Time elapsed: 0.61 sec <<<
ERROR!
org.hibernate.NonUniqueObjectException: a different object with the same
identifier value was already associated with the session:
[org.hibernate.test.legacy.Middle#org.hibernate.test.legacy.MiddleKey@(protected)]
  at
org.hibernate.engine.StatefulPersistenceContext.checkUniqueness (StatefulPersistenceContext.java:637)

  at
org.hibernate.event.def.DefaultDeleteEventListener.onDelete (DefaultDeleteEventListener.java:120)

  at
org.hibernate.event.def.DefaultDeleteEventListener.onDelete (DefaultDeleteEventListener.java:73)

  at org.hibernate.impl.SessionImpl.fireDelete (SessionImpl.java:955)
  at org.hibernate.impl.SessionImpl.delete (SessionImpl.java:933)
  at org.hibernate.test.legacy.FumTest.testKeyManyToOne (FumTest.java:677)

Can someone review my patch (attached) and help me to fix the regression as I
don't understand the error.

Thanks

Julien



_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev
©2008 gg3721.com - Jax Systems, LLC, U.S.A.