deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r988916 - in /websites/staging/deltaspike/trunk/content: ./ documentation/data.html
Date Mon, 23 May 2016 02:11:40 GMT
Author: buildbot
Date: Mon May 23 02:11:40 2016
New Revision: 988916

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/documentation/data.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon May 23 02:11:40 2016
@@ -1 +1 @@
-1745102
+1745104

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:11:40
2016
@@ -965,6 +965,27 @@ like this</p>
 }</code></pre>
 </div>
 </div>
+<div class="paragraph">
+<p>Query Limits can be applied even when there is no where clause defined by your
+query.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="java"><span class="annotation">@Repository</span>
+<span class="directive">public</span> <span class="type">interface</span>
<span class="class">PersonRepository</span> <span class="directive">extends</span>
EntityRepository&lt;Person, <span class="predefined-type">Long</span>&gt;
+{
+
+    <span class="predefined-type">List</span>&lt;Person&gt; findAllOrderByAgeAsc();
+
+    <span class="predefined-type">List</span>&lt;Person&gt; findTop20OrderByLastNameDesc();
+
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>The first query finding all entries ordered by age, and the second only 20
+ordered by last name.</p>
+</div>
 </div>
 <div class="sect2">
 <h3 id="_nested_properties">Nested Properties</h3>



Mime
View raw message