最近我在一家公司面临F-to-F面试。 面试官刚刚问了我以下问题:
What are the differences between JPA's EntityManager and Hibernate's First level caching? Please explain with suitable example.
最佳答案
Hibernate 本身通过 Hibernate Annotations 和 Hibernate EntityManager 库(或风格)实现了 JPA,它们建立在 Hibernate Core 库之上。 Hibernate EntityManager 是 JPA 的完整实现,它遵循 JPA 生命周期
JPA 就像一个由其他 ORM 实现的接口(interface),而这些 ORM 充当此的供应商。 所以,没有区别的问题...... 要了解更多信息,您可以访问此链接。
关于java - JPA的EntityManager和Hibernate的一级缓存有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26132940/