jpa:hibernate
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| jpa:hibernate [2019/01/27 18:06] – created odefta | jpa:hibernate [2023/07/04 16:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| - | For pure Hibernate API, we should use **hibernate.cfg.xml** | + | For pure Hibernate API, we should use **hibernate.cfg.xml**.\\ |
| For JPA (Java Persistence API), the **persistence.xml** file should be used. | For JPA (Java Persistence API), the **persistence.xml** file should be used. | ||
| === Migrating from Hibernate API to JPA === | === Migrating from Hibernate API to JPA === | ||
| - | If we have a pure Hibernate API project, we can use the existing configuration file in a new JPA project. | + | If we have a pure Hibernate API project, we can use the existing configuration file in a new JPA project.\\ |
| Add in persistence.xml the property **hibernate.ejb.cfgfile** | Add in persistence.xml the property **hibernate.ejb.cfgfile** | ||
| < | < | ||
| - | < | + | < |
| - | xmlns: | + | xmlns=" |
| - | xsi: | + | |
| - | http:// | + | |
| - | version=" | + | |
| + | | ||
| + | > | ||
| < | < | ||
| < | < | ||
jpa/hibernate.1548612383.txt.gz · Last modified: (external edit)
