JPA 1不够好

编程入门 行业动态 更新时间:2024-10-06 08:22:29
本文介绍了JPA 1不够好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在过去4个月中,在一个中等规模的项目中工作 - 我们正在使用JPA和Spring - 我相当肯定,对于需要超过CRUD 的项目,JPA不是强大的功能屏幕...查询接口很差,Hibernate没有尊重JPA规范所有的时间和很多次我需要使用 hibernate类,注释和配置。 你们如何看待JPA?这是不是很好?

解决方案

Hibernate已经很长时间了。这就是为什么它有很多功能在JPA中不可用。但随着时间的推移JPA将赶上。在此之前,必要时使用JPA和Hibernate特定设置。如果您需要稍后切换,则会更容易。

Working in a medium size project during last 4 months - we are using JPA and Spring - I'm quite sure that JPA is not powerfull for projects that requires more than CRUD screen... Query interface is poor, Hibernate doesn't respect JPA spec all the time and lot of times I need to use hibernate classes, annotations and config. What do you guys think about JPA? Is it not good enough?

解决方案

Hibernate has been a long time in the road. That's why it has many functions not avaiable in JPA yet. But with time JPA will catch up. Until then, use JPA and Hibernate specific settings where necessary. If you need to switch later, it'll be a lot easier.

更多推荐

JPA 1不够好

本文发布于:2023-11-23 06:54:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620515.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:够好   JPA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!