Question

0
Is hibernate.cfg.xml still needed when I am also using JPA annotation ?
4 months ago by markblake

Hi,

After failing to use JPA alone to insert my data, I have now added on one more layer aka Hibernate.

However, I do not know if hibernate.cfg.xml is still needed cos most of the information about my connection is in persistence.xml.

Hope someone can tell me the right way of doing things.

Many thanks.

I didn't find the right solution from the Internet.

-References
-https://coderanch.com/t/682914/databases/hibernate-cfg-xml-needed-JPA

-Connected Device Video

3dp4e
Add Comment

Please login to post a comment.

0 Answers