java – javax.persistence not included in spring data jpa?

java – javax.persistence not included in spring data jpa?

Spring Data JPA itself isnt an implementation of the JPA specification. It is an abstraction built on top of JPA that requires a JPA implementation, typically Hibernate, to function. The JPA implementation provides the javax.persistence classes.

If youre using Spring Boots Data JPA starter, it has dependencies on both Spring Data JPA and Hibernate. Hibernate then has a dependency on the javax.persistence API which makes its classes available to your applications code.

java – javax.persistence not included in spring data jpa?

Leave a Reply

Your email address will not be published. Required fields are marked *