什么是Linq和Entity Framework的Java等效项 [英] What are the Java equivalents to Linq and Entity Framework

查看:244
本文介绍了什么是Linq和Entity Framework的Java等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近使用过Linq(用于SQL和对象)以及Microsoft的Entity Framework,我想知道非.Net(特别是Java)的等效项是什么?

Having played with Linq (to SQL and Objects) as well as the Entity Framework from Microsoft recently, I was wondering what the non-.Net (specifically Java) equivalents are?

推荐答案

考虑使用Querydsl: http://www.querydsl. com

Consider using Querydsl : http://www.querydsl.com

它支持JPA/休眠,JDO,SQL和集合.

It supports JPA/Hibernate, JDO, SQL and Collections.

Querydsl是完全类型安全的,支持IDE中的自动完成功能,并在多个后端提供通用的查询语法.

Querydsl is fully type-safe, supports autocomplete in IDEs and provides a common querying syntax on top multiple backends.

我是Querydsl的维护者,我写了一个与其他框架进行比较不久前.

I am the maintainer of Querydsl, and I wrote a comparison to other frameworks some time ago.

它略有偏差,但显示的重点有所不同

It is slightly biased, but shows the different emphasis

  • 是否静态输入
  • 支持哪些后端
  • 是否为级联查询构造的接口

较新的框架也尝试使用闭包语法.

Newer frameworks experiment also with closure syntax.

这篇关于什么是Linq和Entity Framework的Java等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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