冬眠的替代品 [英] Alternatives to hibernate

查看:143
本文介绍了冬眠的替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://vimeo.com/28885655

这样的程序员最好的解决方案是什么?

制作视频的人相信


  1. 在很多情况下,hibernate过度杀伤

  2. 基本的sql是一种很好的语言,hibernate会将其抽象得很多

我听说过其他一些ORM实现





我想知道他们是如何比较的,以及每种产品的优点和缺点。

解决方案

这里你能够找到一个广泛的Java ORM和持久性解决方案列表。并非所有的Hibernate / JPA方法都是如此,其中一些方法通过设计非常容易。



当然,有些解决方案没有在该网站上列出,例如具有模板的Spring JDBC等。这是我个人选择的项目,需要快速,轻松地构建JDBC访问并且已经在使用Spring。

总体而言,至少对于我来说,早些时候说Hibernate很糟糕,并且它变得很大。它的目的非常好,但适合许多鞋子。我个人认为它会保持原样,但NoSQL解决方案可能会诞生一种新的Java数据映射解决方案,如春季资料。需要创建一个与应用程序数据进行交互的简单方法,但我不相信如何到达那里达成共识......


What would be the best solution for programmers like http://vimeo.com/28885655

The people who created the video believe

  1. In many cases hibernate is overkill
  2. Basic sql is a good language that hibernate abstracts away to much

I heard about some other ORM implementations like

I would like to hear how they compare and what are the advantages/disadvantages of each one.

解决方案

Here you can find an extensive list of Java ORMs and persistence solutions. Not all of the follows Hibernate/JPAs approach, some of them are quite easy by design.

Of course there are solutions not listed on that site, i.e. Spring JDBC with templates, etc.. And this is my personal choice for projects that require fast, easy to build JDBC access and are already using Spring.

In general, for me at least, it's a little bit to early to say Hibernate is bad and it grown to big. It serves it's purpose quite well, but grown to fit to many shoes. My personal opinion is that it will stay as it is, but NoSQL solutions will probably give birth to a new breed of Java data mapping solutions, like Spring Data. There is a need to create a simple approach to interact with application data, but I don't believe there is a consensus on how to get there... yet.

这篇关于冬眠的替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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