开发者

JPA and Hibernate [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜