Spring Boot Jpa:默认休眠吗? [英] Spring boot Jpa: hibernate as default?

查看:89
本文介绍了Spring Boot Jpa:默认休眠吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果使用 spring-boot-starter-data-jpa 依赖项并通过 org.springframework.data.jpa.repository.JpaRepository 扩展存储库类,是这个吗? 'plain jpa'或休眠?

if one uses the spring-boot-starter-data-jpa dependency and extends repository classes by org.springframework.data.jpa.repository.JpaRepository, is this 'plain jpa' or hibernate?

有什么区别?

推荐答案

JPA是一个接口,而Hibernate是其实现.默认情况下,Spring使用Hibernate作为默认的JPA供应商.如果您愿意,可以使用任何其他参考实现,例如用于Spring项目中Java持久性的EclipseLink.

JPA is an interface and Hibernate is the implementation. By default Spring uses Hibernate as the default JPA vendor. If you prefer, you can use any other reference implementation e.g. EclipseLink for the Java Persistence in your Spring project.

这篇关于Spring Boot Jpa:默认休眠吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆