Top "Gorm" questions

GORM is Grails' object relational mapping (ORM) implementation.

Grails Enum Mapping

in Grails, Is there a way to limit the size of the column to which the enum is mapped. In …

grails gorm
Defining default sort-order in Grails/GORM

Let's say I have definied a User object using GORM. Each user can have zero or more Login:s. Each …

grails gorm gsp
Retrieving a list of GORM persistent properties for a domain

What's the best/easiest way to get a list of the persistent properties associated with a given GORM domain object? …

grails gorm
criteria uses "inner join" instead "left join" approach by default making my query work not the way I planned

The question is: how do I make GORM generate left joins instead of inner joins in this particular example? Testbed: …

grails gorm
Why is GORM not saving my object?

If I execute this code in the Grails console: def p = new Post(title: "T"); p.save(flush: true); // or …

grails groovy gorm
grails delete all data from table / domain class, i.e. "deleteAll"

I've got a domain class, Widget, that I need to delete all instances out of -- clear it out. After …

grails gorm
How to fix StaleObjectStateException with JPA and Hibernate

Controller Logic: def updateObject() { Object o = Object.get(params.id as Long) o.otherObjects.clear() objectDataService.saveObject(o.id) OtherObject …

hibernate grails gorm staleobjectstate
Grails Domain Class : hasOne, hasMany without belongsTo

I am new to Grails. Can I use "hasOne" or "hasMany" without using "belongsTo" to another domain-class? Thanks in advance.

grails gorm grails-domain-class domain-data-modelling
How to make MySQL work on grails 2.0

Grails 2.0 seems to have some changes to DataSource.groovy and I don't seem to be able to get mysql running …

mysql grails datasource gorm grails-2.0
Grails/GORM "in" criteria

Is it possible to do an "in" criteria using the GORM criteria. I'm looking for the equivalent of the following …

hibernate grails criteria gorm