用更轻的解决方案替换完整的ORM(JPA / Hibernate):推荐的加载/保存模式? [英] Replacing a full ORM (JPA/Hibernate) by a lighter solution : Recommended patterns for load/save?

查看:181
本文介绍了用更轻的解决方案替换完整的ORM(JPA / Hibernate):推荐的加载/保存模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个新的Java Web应用程序,我正在探索新方法(对我来说是新的!)来保存数据。我大部分都有JPA& amp; Hibernate但是,除了简单的情况,我认为这种完整的ORM会变得非常复杂。另外,我不喜欢和他们一起工作。我正在寻找一种新的解决方案,可能更接近SQL。

I'm developing a new Java web application and I'm exploring new ways (new for me!) to persist the data. I mostly have experience with JPA & Hibernate but, except for simple cases, I think this kind of full ORM can become quite complex. Plus, I don't like working with them that much. I'm looking for a new solution, probably closer to SQL.

我正在调查的解决方案:

The solutions I'm currently investigating :

  • MyBatis
  • JOOQ
  • Plain SQL/JDBC, potentially with DbUtils or some other basic utility libraries.

但与Hibernate相比,有两个用例我担心这些解决方案。我想知道这些用例的推荐模式是什么。

But there are two use cases I'm worrying about with those solutions, compared to Hibernate. I'd like to know what are the recommended patterns for those use cases.

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