deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject svn commit: r1745104 - /deltaspike/site/trunk/content/documentation/data.html
Date Mon, 23 May 2016 02:10:48 GMT
Author: johndament
Date: Mon May 23 02:10:48 2016
New Revision: 1745104

URL: http://svn.apache.org/viewvc?rev=1745104&view=rev
Log:
Site checkin for project Apache DeltaSpike Documentation

Modified:
    deltaspike/site/trunk/content/documentation/data.html

Modified: deltaspike/site/trunk/content/documentation/data.html
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/data.html?rev=1745104&r1=1745103&r2=1745104&view=diff
==============================================================================
--- deltaspike/site/trunk/content/documentation/data.html (original)
+++ deltaspike/site/trunk/content/documentation/data.html Mon May 23 02:10:48 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