I have a question about the "grails way" of doing things.
My PageTemplate class has many InputComponents, e.g:
static hasMany = [inputs:InputComponent]
To get all the inputs which belong to a particular pageTemplateInstance, I can either do:
def inputs = InputComponent.findAllWhere(pageTemplate: pageTemplateInstance, [sort: 'position'])
def inputs2 = pageTemplateInstance.inputs
The first returns a List, the second returns a PersistentSet. Which is the canonical way to do this in grails?
- Scottish GovernmentICT Specialist, 2012 - present
- Publishing ScotlandEditor, BooksfromScotland.com, 2005 - 2012
- Waterstone'sBookseller, 2003 - 2005
Britain is scared to face the real issue – it's all about inequality
Will Hutton: The growing gap between rich and poor precipitated the last crash. Ominously, the same forces are abroad again
Scottish Independence: The Richest Nation In The World - National Collec...
Money doesn't make us happier. That's why we need a post-materialist case for an independent Scotland. The cover of this week's
Homosexual Former Ex-Gay Director Admits He’s Never Met A Real Ex-Gay /...
So often people will say someone needs to “repent” from homosexuality. It is something that actually cannot be repented of! People are, or t
The 10 best fonts from the Google Webfonts Directory | Ralf Herrmann: ...
Home page; About; Recommend Content. Subscribe: Posts | Comments. Ralf Herrmann: Wayfinding & Typography. Home; Wayfinding; Typography;