Hi,
I encountering a very strange problem. I have a method doSomething() in a java application implemented in Spring. When I run the method without putting any decalarative transactions in the application-context.xml it works fine. But the moment I put the transactions like <prop key="doSomething">PROPAGATION_REQUIRED</prop> I start getting the error that says ->
org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session: [com.abc.A#13]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.abc.A#13]
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.abc.A#13]
But I need to know that if the function works fine without using transactions, then why does it fail when I add transactions to it.
I am using Hibernate version:3.0
Please let me know if you need any more details or anything is not clear.
Thanks in Advance,
Ashish Abrol
|