Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9447

Improve groovy DSL : resolve automatic pk field for entity one

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • 17.12.01
    • framework
    • None

    Description

      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 :

      GenericValue product = from('Product').where(context).queryOne()
      

      This issue provides two solution to extend the EntityQuery class linked to the from groovy dsl syntax

      Attachments

        1. OFBIZ-9447.patch
          2 kB
          Deepak Dixit
        2. OFBIZ-9447-sol1.patch
          3 kB
          Nicolas Malin
        3. OFBIZ-9447-sol2.patch
          3 kB
          Nicolas Malin

        Activity

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: