Relation between JPA and Hibernate annotation

后端 未结 3 1674
庸人自扰
庸人自扰 2020-12-15 00:29

I am quite new in Spring world and I am studying how to integrate Hibernate and Spring framework

i have some dount about the relation beetween Hibernate annotation a

3条回答
  •  温柔的废话
    2020-12-15 00:41

    Hibernate is an implementation of the JPA specification. JPA is just a specification, and a set of annotations and interfaces. You need an implementation of JPA to use it, and Hibernate is one of them. Just like to use JDBC, you need a database driver.

    The package of the annotation is javax.persistence, so they're JPA annotations. Hibernate annotations are in the package org.hibernate.xxx.

提交回复
热议问题