<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=SpringData%3AQuery%E6%98%A0%E5%B0%84</id>
	<title>SpringData:Query映射 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=SpringData%3AQuery%E6%98%A0%E5%B0%84"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=SpringData:Query%E6%98%A0%E5%B0%84&amp;action=history"/>
	<updated>2026-06-02T21:11:52Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=SpringData:Query%E6%98%A0%E5%B0%84&amp;diff=2193&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​创建页面，内容为“=内置实现= *http://docs.spring.io/spring-data/jpa/docs/1.3.4.RELEASE/reference/html/jpa.repositories.html &lt;pre&gt; Keyword	Sample	JPQL snippet And	findByLastnameAnd...”</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=SpringData:Query%E6%98%A0%E5%B0%84&amp;diff=2193&amp;oldid=prev"/>
		<updated>2017-05-18T05:54:48Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“=内置实现= *http://docs.spring.io/spring-data/jpa/docs/1.3.4.RELEASE/reference/html/jpa.repositories.html &amp;lt;pre&amp;gt; Keyword	Sample	JPQL snippet And	findByLastnameAnd...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=内置实现=&lt;br /&gt;
*http://docs.spring.io/spring-data/jpa/docs/1.3.4.RELEASE/reference/html/jpa.repositories.html&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Keyword	Sample	JPQL snippet&lt;br /&gt;
And	findByLastnameAndFirstname	… where x.lastname = ?1 and x.firstname = ?2&lt;br /&gt;
Or	findByLastnameOrFirstname	… where x.lastname = ?1 or x.firstname = ?2&lt;br /&gt;
Between	findByStartDateBetween	… where x.startDate between 1? and ?2&lt;br /&gt;
LessThan	findByAgeLessThan	… where x.age &amp;lt; ?1&lt;br /&gt;
GreaterThan	findByAgeGreaterThan	… where x.age &amp;gt; ?1&lt;br /&gt;
After	findByStartDateAfter	… where x.startDate &amp;gt; ?1&lt;br /&gt;
Before	findByStartDateBefore	… where x.startDate &amp;lt; ?1&lt;br /&gt;
IsNull	findByAgeIsNull	… where x.age is null&lt;br /&gt;
IsNotNull,NotNull	findByAge(Is)NotNull	… where x.age not null&lt;br /&gt;
Like	findByFirstnameLike	… where x.firstname like ?1&lt;br /&gt;
NotLike	findByFirstnameNotLike	… where x.firstname not like ?1&lt;br /&gt;
StartingWith	findByFirstnameStartingWith	… where x.firstname like ?1 (parameter bound with appended %)&lt;br /&gt;
EndingWith	findByFirstnameEndingWith	… where x.firstname like ?1 (parameter bound with prepended %)&lt;br /&gt;
Containing	findByFirstnameContaining	… where x.firstname like ?1 (parameter bound wrapped in %)&lt;br /&gt;
OrderBy	findByAgeOrderByLastnameDesc	… where x.age = ?1 order by x.lastname desc&lt;br /&gt;
Not	findByLastnameNot	… where x.lastname &amp;lt;&amp;gt; ?1&lt;br /&gt;
In	findByAgeIn(Collection&amp;lt;Age&amp;gt; ages)	… where x.age in ?1&lt;br /&gt;
NotIn	findByAgeNotIn(Collection&amp;lt;Age&amp;gt; age)	… where x.age not in ?1&lt;br /&gt;
True	findByActiveTrue()	… where x.active = true&lt;br /&gt;
False	findByActiveFalse()	… where x.active = false&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=自定义查询=&lt;br /&gt;
[[Category:Programe]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
</feed>