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不够好
发布评论