Do we need a new method for this or is this too much. Seems like not
that much to me.
def item = Item.findByName('someName') ?: new Item()
Certainly, this would be more flexible.
def item = Item.findByName('someName') ?: new Item(name:'default', property:'something')
On Fri, 2009-07-03 at 15:41 -0400, Robert Fischer wrote:
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email