• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring - JPA/Hibernate @Schedular and @Transactional

 
Atul More
Greenhorn
Posts: 11
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using Spring and JPA/Hibernate for my project.
I am writing a job using spring @Schedular mechanism.
I am facing very strange issue here, not able to update the DB values within transaction. I am using @Transactional annotation.

Is there anything which I am missing? The job is getting called, able to read the data but not able to update the DB values.

Any idea?


Thanks,
Atul
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!