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 19A46200CDC for ; Sat, 22 Jul 2017 14:26:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 18175168613; Sat, 22 Jul 2017 12:26:05 +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 5C5C5168612 for ; Sat, 22 Jul 2017 14:26:04 +0200 (CEST) Received: (qmail 79276 invoked by uid 500); 22 Jul 2017 12:26:03 -0000 Mailing-List: contact notifications-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list notifications@ofbiz.apache.org Received: (qmail 79267 invoked by uid 99); 22 Jul 2017 12:26:03 -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; Sat, 22 Jul 2017 12:26:03 +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 28CFCC09CB for ; Sat, 22 Jul 2017 12:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WCCvrQog1jDG for ; Sat, 22 Jul 2017 12:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A6E9A5F640 for ; Sat, 22 Jul 2017 12:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CE4E9E0D67 for ; Sat, 22 Jul 2017 12:26:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 37ACE21EE8 for ; Sat, 22 Jul 2017 12:26:00 +0000 (UTC) Date: Sat, 22 Jul 2017 12:26:00 +0000 (UTC) From: "Nicolas Malin (JIRA)" To: notifications@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (OFBIZ-9447) Improve groovy DSL : resolve automatic pk field for entity one MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 22 Jul 2017 12:26:05 -0000 [ https://issues.apache.org/jira/browse/OFBIZ-9447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin closed OFBIZ-9447. -------------------------------- Resolution: Fixed > Improve groovy DSL : resolve automatic pk field for entity one > -------------------------------------------------------------- > > Key: OFBIZ-9447 > URL: https://issues.apache.org/jira/browse/OFBIZ-9447 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: Trunk > Reporter: Nicolas Malin > Assignee: Nicolas Malin > Priority: Minor > Fix For: Upcoming Release > > Attachments: OFBIZ-9447.patch, OFBIZ-9447-sol1.patch, OFBIZ-9447-sol2.patch > > > Like the element entity-one on mini-lang that can resolve automatically the pk field from context, I propose like explain on the thread https://lists.apache.org/thread.html/5d2c0ac2e0e6a3a8ce13050e9b2d573e82adabbf0067428d087e48c1@%3Cdev.ofbiz.apache.org%3E to use the following syntax : > {code} > GenericValue product = from('Product').where(context).queryOne() > {code} > This issue provides two solution to extend the EntityQuery class linked to the from groovy dsl syntax -- This message was sent by Atlassian JIRA (v6.4.14#64029)