excel-export icon indicating copy to clipboard operation
excel-export copied to clipboard

[withProperties] More simple exporting my own types

Open abdennour opened this issue 11 years ago • 0 comments

This resolves handling own types , however , it does not taske benefits of groovy extra-features comparing with Java .

My suggestion is to use Closures directly :

def withProperties=['name',{it.currency.displayName}]

Instead of :

creating whole class+ Instantiate it like this .

def withProperties = ['name', new CurrencyGetter('price.currency')]

abdennour avatar Dec 03 '14 10:12 abdennour