Home Hibernate TableGenerator#generate makes a commit automatically
Reply: 0

Hibernate TableGenerator#generate makes a commit automatically

user632 Published in April 19, 2018, 10:02 am

I'm using Hibernate 5.1.10. The problem is, when the TableGenerator#generate method is called, it sets transacted property to true while calling org.hibernate.engine.transaction.spi.IsolationDelegate#delegateWork. This makes a problem for me, because this method is called inside the locked transaction and committing it, and I don't need for this transaction to be commited until all of the queries are completed. Any help is apreciated, I wouldn't like to override the TableGenerator#generate method completely because of one hardcoded parameter..

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.387612 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO