gpt4 book ai didi

java - JPA 和 EBean Play 框架之间的区别

转载 作者:太空狗 更新时间:2023-10-29 22:59:37 25 4
gpt4 key购买 nike

我是 Play 框架的新手,我尝试按照食谱进行操作,但它似乎已经过时了。无论如何,我只想知道我提到的那些之间是否存在很大差异。

一些教程使用 eBean,而其他教程使用 jpa。我真的很困惑。

最佳答案

这里回答了同样的问题:https://groups.google.com/forum/#!topic/play-framework/6OR1Osf4AAU

JPA is a standard which many libraries implement. Ebean uses parts of the JPA standard. Ebean expects you to annotate your models with JPA annotations. So the question, which is better, Ebean or JPA, is a strange one to answer since Ebean partially is a JPA implementation. I believe Play 2 might also offer a Hibernate integration, which more fully implements the JPA standard, and perhaps is what you were asking about? Hibernate is much more widely used in the Java community. I switched to Ebean when trying Play 2 and haven't looked back. I much prefer it to Hibernate because Hibernate had many tricky gotchas that I was always stumbling over and I haven't found any of these issues with ebean.

关于java - JPA 和 EBean Play 框架之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20836923/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com