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 7D6CD200BBE for ; Fri, 28 Oct 2016 03:11:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7C037160B01; Fri, 28 Oct 2016 01:11:22 +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 C5792160AF6 for ; Fri, 28 Oct 2016 03:11:21 +0200 (CEST) Received: (qmail 7318 invoked by uid 500); 28 Oct 2016 01:11:20 -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 7309 invoked by uid 99); 28 Oct 2016 01:11:20 -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; Fri, 28 Oct 2016 01:11:20 +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 43B36C0ABA for ; Fri, 28 Oct 2016 01:11:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fe4hYDcLnb7Y for ; Fri, 28 Oct 2016 01:11:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0CF475FB5B for ; Fri, 28 Oct 2016 01:11:19 +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 71EEFE0425 for ; Fri, 28 Oct 2016 01:11:18 +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 3E95A3A0233 for ; Fri, 28 Oct 2016 01:11:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1000017 - in /websites/staging/deltaspike/trunk/content: ./ documentation/data.html Date: Fri, 28 Oct 2016 01:11:18 -0000 To: commits@deltaspike.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161028011118.3E95A3A0233@svn01-us-west.apache.org> archived-at: Fri, 28 Oct 2016 01:11:22 -0000 Author: buildbot Date: Fri Oct 28 01:11:17 2016 New Revision: 1000017 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 Fri Oct 28 01:11:17 2016 @@ -1 +1 @@ -1757060 +1766912 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 Fri Oct 28 01:11:17 2016 @@ -1444,6 +1444,28 @@ result of the list, or else empty(

Queries returning Stream<T> act as a simple wrapper for query.getResultList().stream() to give back the results.

+
+

Entity Graphs

+
+

EntityGraphs are a feature added in JPA 2.1. The Data module supports entity graphs for query operations, where the results +will be limited based on a defined graph. This feature is only available if you are using a JPA 2.1 implementation.

+
+
+

@EntityGraph can be used for either fetch or load operations, depending on the EntityGraphType used in the annotation. Most queries should use the FETCH option.

+
+
+

Named Graphs

+
+

Entity graphs can be selected by name. A @NamedEntityGraph should be defined already within your persistence context to leverage this. When this graph is referenced on a repository method, it will be applied to the query.

+
+
+
+

Dyanmically built graphs

+
+

If you want to dynamically build a graph, you can do that via the paths attribute of the annotation. The paths specified will be added as graph nodes. Each graph node will be used in the select. The format is the full path to the property, based on the property names.

+
+
+
@@ -2333,6 +2355,12 @@ provider when persisting / updating the
  • Zero or One Result
  • Any Result
  • Java 8 Semantics
  • +
  • Entity Graphs + +
  • Transactions