deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r988919 - in /websites/staging/deltaspike/trunk/content: ./ documentation/data.html
Date Mon, 23 May 2016 02:58:04 GMT
Author: buildbot
Date: Mon May 23 02:58:03 2016
New Revision: 988919

Staging update by buildbot for deltaspike

    websites/staging/deltaspike/trunk/content/   (props changed)

Propchange: websites/staging/deltaspike/trunk/content/
--- cms:source-revision (original)
+++ cms:source-revision Mon May 23 02:58:03 2016
@@ -1 +1 @@

Modified: websites/staging/deltaspike/trunk/content/documentation/data.html
--- websites/staging/deltaspike/trunk/content/documentation/data.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation/data.html Mon May 23 02:58:03
@@ -815,7 +815,7 @@ generate the query implementation out of
 <div class="listingblock">
 <div class="content">
-<pre>(Entity|List&lt;Entity&gt;) findBy(Property[Comparator]){Operator Property
+<pre>(Entity|List&lt;Entity&gt;) (prefix)(Property[Comparator]){Operator Property
 <div class="paragraph">
@@ -827,7 +827,7 @@ generate the query implementation out of
 <p>The query method must either return an entity or a list of entities.</p>
-<p>It must start with the <code>findBy</code> keyword (or related <code>findOptionalBy</code>,
+<p>It must start with the <code>findBy</code> prefix (or related <code>findOptionalBy</code>,
<code>findAnyBy</code>, <code>findAll</code>, <code>findFirst</code>
or <code>findTop</code>).</p>
 <p>Followed by a property of the Repository entity and an optional comparator (we&#8217;ll
define this later). The property will be used in the query together with the comparator. Note
that the number of arguments passed to the method depend on the comparator.</p>
@@ -949,8 +949,8 @@ you will notice early in case you have a
 <h3 id="_query_limits">Query Limits</h3>
 <div class="paragraph">
 <p>Starting with Apache DeltaSpike 1.6.2, you can apply query limits using method
-expressions.  They can be applied using <code>First</code> or <code>Top</code>
keywords, in a method
-like this</p>
+expressions.  They can be applied using <code>findFirst</code> or <code>findTop</code>
prefixes in a
+method like this:</p>
 <div class="listingblock">
 <div class="content">
@@ -966,6 +966,11 @@ like this</p>
 <div class="paragraph">
+<p>The number following the prefix indicates how many to limit by, when setting
+the <code>maxResults</code> attribute of the underlying query.  You can pair
this with
+a <code>@FirstResult</code> parameter to give consistent paging.</p>
+<div class="paragraph">
 <p>Query Limits can be applied even when there is no where clause defined by your

View raw message