Top "Grails-domain-class" questions

deals with issues related to the definitions of domain model

Grails createCriteria group by (groupProperty function) multiple attributes

I'm wondering if grails createCriteria supports group by multiple attributes like pure sql does. I'd like to list entries like …

grails grails-domain-class
Setting default value for Date field in Grails Domain Class

I'm trying to set a default value for a Date field in a Domain class. I can use defaultValue in …

grails grails-domain-class
Grails conditional nullable validation or custom validator with nullable option

I have a form to create a place. Depending of the country, the province (state, region) field is required or …

grails grails-domain-class grails-2.0 grails-validation
Using JSON to create an object in Groovy/Grails

I have a Groovy/Grails website that is being used to send data to Android clients via JSON. I have …

android grails groovy grails-domain-class grails-controller
Grails hasMany: find all master records with a child that matches a criteria

I have this Grails 2.0.3 project wherein there are two models DomainA and DomainB and both are related to each other …

hibernate grails grails-domain-class hibernate-criteria
Method on class [] was used outside of a Grails application controller

Having below grails config: Datasource. environments { development { dataSource { dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' url = "jdbc:h2:…

grails grails-orm grails-2.0 grails-domain-class grails-2.3
How can I change column name convention in Grails?

For now I have field "String firstName" it converted to "first_name" and i want "firstname" as default in Hibernate. …

groovy grails grails-domain-class
Grails Command Objects custom Validate Message Codes

When using command objects like: class UserCommand { String name static constraints = { name blank: false, unique: true, minSize: 3 } } you can use …

validation grails grails-2.0 grails-domain-class grails-validation
Grails custom validator for domain class

I have a restriction so there could be no more than ConfigurationHolder.config.support.reminder.web.person.max object stored. …

grails grails-domain-class grails-validation