Top "Gorm" questions

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

Why do I get a "Null value was assigned to a property of primitive type setter of" error message when using HibernateCriteriaBuilder in Grails

I get the following error when using a primitive attribute in my grails domain object: Null value was assigned to …

grails gorm
Found shared references to a collection org.hibernate.HibernateException

I got this error message: error: Found shared references to a collection: Person.relatedPersons When I tried to execute addToRelatedPersons(…

java hibernate grails groovy gorm
How to order by more than one field in Grails?

Is there a way to get a list ordered by two fields, say last and first names? I know .listOrderByLastAndFirst …

grails sql-order-by gorm
Difference between findAll, getAll and list in Grails

With Grails there are several ways to do the same thing. Finds all of domain class instances: Book.findAll() Book.…

grails gorm
StaleObjectStateException: Row was updated or deleted by another transaction?

I do the following: def currentUser = springSecurityService.currentUser currentUser.name = "test" currentUser.save(flush: true) // some other code currentUser.gender = "…

spring hibernate grails gorm grails-2.0
Do I ever need to explicitly flush GORM save calls in grails?

I have a strange situation which appears to indicate a GORM cacheing problem //begin with all book.status's as UNREAD …

grails gorm object-persistence
How do you bulk delete records in Grails/GORM?

I have a table which has records that need to be periodically cleared according to a set of criteria. I …

hibernate grails gorm
Grails findAll with sort, order, max and offset?

I want to integrate sort, order, max and offset in a findAll query. The following works fine: def books = Book.…

grails groovy gorm
How to delete an index in Grails with Liquibase

I have a table generated by GORM (Grails Domain). It has foreign key / index that generated random characters like FKAC7…

database grails migration gorm liquibase
dateCreated, lastUpdated fields in Grails 2.0

I've got an application that was using Grails 1.3.7 which I've just migrated to Grails 2.0. The application makes use of the …

grails gorm grails-domain-class grails-2.0