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 5DF9A200B87 for ; Mon, 5 Sep 2016 01:36:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C4CE160AC0; Sun, 4 Sep 2016 23:36:37 +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 A22A0160AB9 for ; Mon, 5 Sep 2016 01:36:36 +0200 (CEST) Received: (qmail 74969 invoked by uid 500); 4 Sep 2016 23:36:35 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 74958 invoked by uid 99); 4 Sep 2016 23:36:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2016 23:36:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 754D3C1330 for ; Sun, 4 Sep 2016 23:36:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.28 X-Spam-Level: X-Spam-Status: No, score=0.28 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id yXTZtqukz3yA for ; Sun, 4 Sep 2016 23:36:34 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9EA945F23A for ; Sun, 4 Sep 2016 23:36:34 +0000 (UTC) Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 624D9A80BE for ; Mon, 5 Sep 2016 01:36:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter27-d.gandi.net (mfilter27-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id ZFCVu_UrGxCV for ; Mon, 5 Sep 2016 01:36:26 +0200 (CEST) X-Originating-IP: 10.58.1.147 Received: from webmail.gandi.net (webmail7-d.mgt.gandi.net [10.58.1.147]) (Authenticated sender: paul@nosphere.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id 09E8DA80C6 for ; Mon, 5 Sep 2016 01:36:25 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 04 Sep 2016 16:36:25 -0700 From: Paul Merlin To: dev@zest.apache.org Subject: Re: toValueList, toValueMap, toValueSet In-Reply-To: References: Message-ID: X-Sender: paulmerlin@apache.org User-Agent: Roundcube Webmail/1.1.2 archived-at: Sun, 04 Sep 2016 23:36:37 -0000 Le 2016-09-03 05:24, Niclas Hedhman a écrit : > This has now been committed to develop. > > The difference in client code is approx something like his; > > UnitOfWork uow = uowf.currentUnitOfWork(); > Vets vets = uow.get( Vets.class, "" ); > return vets > .vets() > .toList() > .stream() > .map( entity -> uow.toValue( Vet.class, entity )) > .collect( Collectors.toList() ); > > > compared to > > UnitOfWork uow = uowf.currentUnitOfWork(); > Vets vets = uow.get( Vets.class, "" ); > return uow.toValueList( vets.vets() ); Lovely!