DATAJPA-188 - Updated query keyword reference.

Included general keyword reference from Spring Data Commons. Updated keyword samples of supported ones.
This commit is contained in:
Oliver Gierke
2012-04-10 19:34:40 +02:00
parent 0ff84c94e8
commit 046e7f3b09
3 changed files with 26 additions and 5 deletions

View File

@@ -60,7 +60,7 @@
<part id="reference">
<title>Reference Documentation</title>
<xi:include href="https://raw.github.com/SpringSource/spring-data-commons/1.3.0.M1/src/docbkx/repositories.xml">
<xi:include href="https://raw.github.com/SpringSource/spring-data-commons/master/src/docbkx/repositories.xml">
<xi:fallback href="../../../spring-data-commons/src/docbkx/repositories.xml" />
</xi:include>
@@ -70,9 +70,12 @@
<part id="appendix">
<title>Appendix</title>
<xi:include href="https://raw.github.com/SpringSource/spring-data-commons/1.3.0.M1/src/docbkx/repository-namespace-reference.xml">
<xi:include href="https://raw.github.com/SpringSource/spring-data-commons/master/src/docbkx/repository-namespace-reference.xml">
<xi:fallback href="../../../spring-data-commons/src/docbkx/repository-namespace-reference.xml" />
</xi:include>
<xi:include href="https://raw.github.com/SpringSource/spring-data-commons/master/src/docbkx/repository-query-keywords-reference.xml">
<xi:fallback href="../../../spring-data-commons/src/docbkx/repository-query-keywords-reference.xml" />
</xi:include>
<xi:include href="appendix/faq.xml" />

View File

@@ -205,6 +205,22 @@
<entry><code>… where x.age &gt; ?1</code></entry>
</row>
<row>
<entry><code>After</code></entry>
<entry><code>findByStartDateAfter</code></entry>
<entry><code>… where x.startDate &gt; ?1</code></entry>
</row>
<row>
<entry><code>Before</code></entry>
<entry><code>findByStartDateBefore</code></entry>
<entry><code>… where x.startDate &lt; ?1</code></entry>
</row>
<row>
<entry><code>IsNull</code></entry>
@@ -292,7 +308,9 @@
</table><note>
<para><code>In</code> and <code>NotIn</code> also take any subclass
of <interfacename>Collection</interfacename> as parameter as well as
arrays or varargs.</para>
arrays or varargs. For other syntactical versions of the very same
logical operator check <xref
linkend="repository-query-keywords" />.</para>
</note></para>
</section>
@@ -960,4 +978,4 @@ public interface UserRepository extends JpaRepository&lt;User, Long&gt; {
</note>
</section>
</section>
</chapter>
</chapter>

View File

@@ -106,7 +106,7 @@
<xsl:param name="gentext-key" select="''"/>
<xsl:variable name="Version">
<xsl:if test="//releaseinfo">
<xsl:text>Spring Data Document (</xsl:text><xsl:value-of select="//releaseinfo" /><xsl:text>)</xsl:text>
<xsl:text>Spring Data JPA (</xsl:text><xsl:value-of select="//releaseinfo" /><xsl:text>)</xsl:text>
</xsl:if>
</xsl:variable>
<xsl:choose>