快速,易于学习和POJO友好的ORM for Java? [英] Fast, simple-to-learn and POJO-friendly ORM for Java?

查看:187
本文介绍了快速,易于学习和POJO友好的ORM for Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能否推荐我符合标题要求的ORM?

Can you please recommend me the ORM that meets requirements in the title?

行业标准当然是Hibernate,但它太棒了我不是确定我能在几天内掌握它。或者我可以吗?

The standard in the industry is Hibernate of course, but it's so great and I am not sure I can master it in days. Or can I?

首选通过注释配置它,而不是XML(手工编写XML非常无聊,不是吗?)。

It's preferred to configure it via annotations, not XML (writing XML by hand is quite boring, isn't it?).

实际上,我只需要方便地发出CRUD查询。也许,我可以使用简单的JDBC和类,但项目最终会成长,这意味着应该一次又一次地完成更繁琐的工作。不要做任何一次又一次无聊的事情,因为一次又一次地编写相同的CRUD;)

Actually, all I need is just to conveniently issue CRUD queries. Probably, I could do with simple JDBC and classes, but project can eventually grow and that means even more tedious work should be done again and again. Don't want to do anything so boring as writing same CRUD again and again ;)

快速意味着至少不会比其他人慢,因为它会为服务器供电,将协调一些分布式计算,每分钟可能会有成千上万的PC出现。

Fast means at least not times slower than others because it's going to power server, that will coordinate some distributed calculations and thousands of PCs are going to hit it per minute may be.

简单易学是指简单的第一步教程超过5页的文字并没有像ObjectDispatcherizationStrategyMubleHuble那样不时出现;)

Simple-to-learn means simple first-step tutorial for it does not go over 5 pages of text and does not go into something like ObjectDispatcherizationStrategyMubleHuble every now and again ;)

推荐答案

我认为简单的CRUD是可行的在几天内使用Hibernate,除了1:m和m:n关系,延迟加载,交易的开放会话等引入的复杂性。

I think simple CRUD is doable with Hibernate in days, except for the complexities introduced by 1:m and m:n relationships, lazy loading, open sessions for transactions, etc.

这假设你'有一个坚实的对象设计来映射。如果你不这样做,你就错过了ORM中的O。

This assumes that you've got a solid object design to map to. If you don't, you're missing the "O" in ORM.

我认为iBatis可以成为JDBC和成熟的ORM之间的一个很好的中间步骤。看看吧。

I think iBatis can be a nice intermediate step between JDBC and full-blown ORM. Check it out.

这篇关于快速,易于学习和POJO友好的ORM for Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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