| Author |
JPA 2.0 em.merge() firing select statements only (no update)
|
Juggy Obhi
Ranch Hand
Joined: Jul 02, 2007
Posts: 51
|
|
Hi,
I need help to understand what exactly is wrong with my logic as per JPA2.0 (Hibernate 3.5).
My problem is that i see em.merge() firing only select statements. I could not see any update statements. I know i am doing some basics wrong but i have not been able to get it. Please guide.
Regards,
Jagpreet Singh
|
It does not matter how many times you fall,what matters is how many times you stand back.
|
 |
Juggy Obhi
Ranch Hand
Joined: Jul 02, 2007
Posts: 51
|
|
It took me almost a day to found this -
In proxy mode (which is the default), only 'external' method calls coming in through the proxy will be intercepted. This means that 'self-invocation', i.e. a method within the target object calling some other method of the target object, won't lead to an actual transaction at runtime even if the invoked method is marked with @Transactional!
I hope this will same time for some one.
Regards,
Jagpreet Singh
|
 |
 |
|
|
subject: JPA 2.0 em.merge() firing select statements only (no update)
|
|
|