[英]Does SessionImplementor have access to a TransactionManager in Hibernate 5.x?
In Hibernate 3.x you were able to access a TransactionManager like: 在Hibernate 3.x中,您可以像以下方式访问TransactionManager:
sessionImplementor.getFactory().getTransactionManager();
I was wondering if you could do something similar with SessionImplementor in hibernate 5? 我想知道您是否可以在休眠5中使用SessionImplementor做类似的事情? Is there still a way to access TransactionManage?
仍然可以访问TransactionManage吗?
Hibernate 5迁移,请参考以下URL, https://github.com/hibernate/hibernate-orm/blob/5.0/migration-guide.adoc#transactions
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.