JPA 专业知识是否可以转移到 Toplink?
JPA 和 Toplink 有多相似,其中一个的专业知识可以转移到另一个?
How similar are JPA and Toplink such that expertise in one could carry over to the other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解,TopLink是JPA标准的实现。还有其他的,使用 TopLink 意味着使用 JPA。当然,对于较新版本的 JPA 标准,我建议使用更强大的架构,例如 Hibernate。事实上,JPA 标准从 Hibernate 借用了很多,所以现在它们是相互内联的。另一个优点是,网上有很多关于 Hibernate 的参考资料,而 TopLink 与之相差甚远。
Hibernate 是一个相当复杂的工具,但是任何 Java 商店都非常需要拥有它的经验。
As I understand it, TopLink is an implementation of the JPA standard. There are others as well, and using TopLink implies using JPA. Of course with the newer versions of the JPA standard, I would suggest using a more robust architecture such as Hibernate. The JPA standard infact borrowed quite a bit from Hibernate, and so now they are inline with one another. Another advantage is that there is a lot of reference material online for Hibernate, and TopLink is nowhere close to this.
Hibernate is a pretty complex tool, but experience in it would be highly desirable in any Java shop.
JPA 是 TopLink 提供的功能的子集。如果您觉得 JPA 可以满足您的需求,那么就使用它。如果您稍后需要更改 ORM 解决方案,它将为您提供一个简单的路线。
JPA is a subset of the features offered by TopLink. If you feel your needs are met by JPA, then use that. It will give you a simple route should you need to change ORM solution later.