This is my architecture, I'm using hibernate and spring aop, i have a transaction manager: org.springframework.orm.hibernate.HibernateTransac tionManager and a transaction interceptor:
org.springframework.transaction.interceptor.Transa ctionInterceptor
i hava one method and it has PROPAGATION_REQUIRED as transactionAttributeSource.
Here is my problem.
I'm loading an object, it has a collection, and the object in that collection has a set too, anyhow, while I'm downloading the object after the method is called the interception performs a commit, while it's flushing the transacition, it's spitting some select queries, but after that it stars to delete the rows from the collection and then it tries to insert them right away.
Is there any form that i can fix that deleting and inserting of rows at loading objects?
I tried setting the method as PROPAGATION_NEVER but it didn't work it started to delete the rows after loading the object!!


Reply With Quote