JPA and Hibernate [closed]
Should I use hibern开发者_StackOverflow中文版ate instead of JPA? What's the difference
Hibernate is JPA.
JPA is a standard. Multiple vendors can provide implementation of that standard. Hibernate is one implementation of JPA. Of course it has additional features, but it supports the whole standard.
So the best thing to do is - use Hibernate (or EclipseLink - another implementation), and apply only JPA-stuff - javax.persistence.*
annotations, and configuration via persistence.xml
(rather than hibernate.cfg.xml
)
精彩评论