JPA is specification only means that we need implementation like Hibernate to use this standard, but why sometimes we can see app using JPA and app using Hibernate? Hibernate using SessionFactory, but JPA Entity Manager... Where this Entity Manager comes from? Another implementation of JPA?
2/23/2020 11:16:50 PM
Ilja Veselov2 Answers
New AnswerI'm not exactly sure what your question is but maybe this will help: https://dzone.com/articles/what-is-the-difference-between-hibernate-and-sprin-1
Hibernate is a JPA implementation: If you use a JPA annotation like @Entity , @Column etc Hibernate knows from these annotations how to interact with the database.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message