JPA 1不够好 [英] JPA 1 is not good enough

查看:101
本文介绍了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不够好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆