hibernate-jpa learning

1. What is the relationship between hibernate and jpa?

jpa (java persistence api) java persistence api, which means a specification of java persistence, and hibernate is an implementation under this specification, other implementations include eclipselink, openjpa and so on.

2. Use of jpa:

The test uses the hibernate-jpa method.

See the attached application lib for the jar package required by the project.

After importing the jar package, the persistence.xml file is configured, and the persistence.xml file is created under the src/META-INF directory. The content of this file is mainly some database link information (such as driver, database address, name, password, etc. information).

Next is the preparation of various pojo classes.

For the learning content, see the attachment JPA Getting Started - Basics.pdf

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326598141&siteId=291194637