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


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.


-Connected Device Video

Add Comment

Please login to post a comment.

0 Answers