1.

What Is The Difference Between Persistence.xml And Hibernate.cfg.xml?

Answer»

When using JPA need persistence.xml and while using Hibernate API need hibernate.cfg.xml. When using JPA or Hibernate not needed both XMLS, need the xml configuration file ACCORDING to JPA or Hibernate.

When using JPA need persistence.xml and while using Hibernate API need hibernate.cfg.xml. When using JPA or Hibernate not needed both xmls, need the xml configuration file according to JPA or Hibernate.



Discussion

No Comment Found