jpa:hibernate
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| jpa:hibernate [2019/01/27 18:06] – 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.1548612410.txt.gz · Last modified:  (external edit)
                
                