ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9447) Improve groovy DSL : resolve automatic pk field for entity one
Date Sat, 22 Jul 2017 09:06:02 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-9447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097182#comment-16097182
] 

Nicolas Malin commented on OFBIZ-9447:
--------------------------------------

Ok I commit the second solutionon trunk at revision 1802660.

for new HashMap<>();, it's intellij that autocomplete like that. I didn't know if it
good or not, I found it's simple to read but no worries I correct it on my commit.

Thanks Jacopo and Taher for the sharing

> 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-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)

Mime
View raw message