Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4A0AF200AE1 for ; Mon, 23 May 2016 02:28:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48A38160A28; Mon, 23 May 2016 00:28:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 90216160A06 for ; Mon, 23 May 2016 02:28:39 +0200 (CEST) Received: (qmail 49670 invoked by uid 500); 23 May 2016 00:28:38 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 49661 invoked by uid 99); 23 May 2016 00:28:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2016 00:28:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 63F18C12E6 for ; Mon, 23 May 2016 00:28:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.799 X-Spam-Level: * X-Spam-Status: No, score=1.799 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qugYPn54KRDE for ; Mon, 23 May 2016 00:28:37 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 6A1045F54F for ; Mon, 23 May 2016 00:28:36 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3A51FE0179 for ; Mon, 23 May 2016 00:28:35 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A1F9F3A023D for ; Mon, 23 May 2016 00:28:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1745102 - in /deltaspike/site/trunk/content/documentation: configuration.html data.html Date: Mon, 23 May 2016 00:28:34 -0000 To: commits@deltaspike.apache.org From: johndament@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160523002834.A1F9F3A023D@svn01-us-west.apache.org> archived-at: Mon, 23 May 2016 00:28:40 -0000 Author: johndament Date: Mon May 23 00:28:33 2016 New Revision: 1745102 URL: http://svn.apache.org/viewvc?rev=1745102&view=rev Log: Site checkin for project Apache DeltaSpike Documentation Modified: deltaspike/site/trunk/content/documentation/configuration.html deltaspike/site/trunk/content/documentation/data.html Modified: deltaspike/site/trunk/content/documentation/configuration.html URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/configuration.html?rev=1745102&r1=1745101&r2=1745102&view=diff ============================================================================== --- deltaspike/site/trunk/content/documentation/configuration.html (original) +++ deltaspike/site/trunk/content/documentation/configuration.html Mon May 23 00:28:33 2016 @@ -479,6 +479,7 @@ cached in the ConfigResolver but might b This makes the overall calculation a bit slower, but allows for values to change dynamically if someone likes to for example implement a JmxConfigSource (not yet part of DeltaSpike, but easily implementable). +You can also use the TypedResolver with the cacheFor(TimeUnit, long) setting to cache the resolved values on the caller side. @@ -617,6 +618,19 @@ connecTo( urlConfig.getValue() );

The sample above will log any value changes in the configuration (logChanges(true)) and internally cache the configured value for 5 minutes (cacheFor(TimeUnit.MINUTES, 5)). Only after that time the configured value will get evaluate again.

+
+ + + + + +
+ + +Note that the 'cache' is only held within the very TypedResolver instance. +If you use different TypedResolver instances (e.g. in different classes) then you might get different cache timeouts. +
+
Modified: deltaspike/site/trunk/content/documentation/data.html URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/data.html?rev=1745102&r1=1745101&r2=1745102&view=diff ============================================================================== --- deltaspike/site/trunk/content/documentation/data.html (original) +++ deltaspike/site/trunk/content/documentation/data.html Mon May 23 00:28:33 2016 @@ -946,6 +946,27 @@ you will notice early in case you have a
+

Query Limits

+
+

Starting with Apache DeltaSpike 1.6.2, you can apply query limits using method +expressions. They can be applied using First or Top keywords, in a method +like this

+
+
+
+
@Repository
+public interface PersonRepository extends EntityRepository<Person, Long>
+{
+
+    List<Person> findFirst2ByLastNameOrderByAgeAscLastNameDesc(String lastName);
+
+    List<Person> findTop2ByLastNameOrderByAgeAscLastNameDesc(String lastName);
+
+}
+
+
+
+

Nested Properties

To create a comparison on a nested property, the traversal parts can be @@ -2237,6 +2258,7 @@ provider when persisting / updating the