Spring-data-JPA

使用新的数据访问技术
支持关系数据
支持非关系数据
支持map-reduce框架
支持基于云计算的数据服务
改进了对关系型的数据库的支持

开源
对于不同类型数据库都有对应的子项目

 

Keyword

Sample

JPQL snippet

And

findByLastnameAndFirstname

where x.lastname = ?1 and x.firstname = ?2

Or

findByLastnameOrFirstname

where x.lastname = ?1 or x.firstname = ?2

Between

findByStartDateBetween

where x.startDate between 1? And ?2

LessThan

findByAgeLessThan

where x.age < ?1

GreaterThan

findByAgeGreaterThan

where x.age > ?1

IsNull

findByAgeIsNull

where x.age is null

IsNotNull

findByAgeIsNotNull

where x.age is not null

NotNull

findByAgeNotNull

where x.age is not null

Like

findByFirstnameLike

where x.firstname like ?1

NotLike

findByFirstnameNotLike

where x.firstname not like ?1

OrderBy

findByAgeOrderByLastnameDesc

where x.age = ?1 order by x.lastname desc

Not

findByLastnameNot

where x.lastname <> ?1

In

findByAgeIn(Collection<Age> ages)

where x.age in ?1

NotIn

findByAgeNotIn(Collection<Age> ages)

where x.age not in ?1

 http://www.ibm.com/developerworks/cn/opensource/os-cn-spring-jpa/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

克里克浅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值