Top "Gorm" questions

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

Changing primary key id to String type in Grails

My Grails 2.0 app has a User domain object defined: class User { static mapping = { table "dt_user" columns { id column:'user_…

grails gorm
Hibernate 2nd level cache in a Grails app

Part I In a Grails app, I understand that you enable the 2nd level cache per domain class by adding …

hibernate caching grails gorm
Joda time DateTime incorrectly stores in database

I'm storing JodaTime DateTime field to timestamptz column by using org.jadira.usertype:usertype.jodatime:1.9. App server has +4 time zone. …

hibernate grails groovy gorm jodatime
How to I bind a Hibernate Session to a thread in Grails?

I'm writing a multi-threaded application in Grails and the additional threads need access to GORM/Hibernate. When they try to …

grails gorm hibernate-session
my own id in GORM

I tried to change the standard 'id' in grails: calls Book { String id String title static mapping { id generator:'assigned' } } …

grails gorm
GORM domain class properties default values

Maybe a silly question but where/how should I define default values for GORM domain class properties? For example when …

grails gorm
Defining OR Condition with grails criteria api

I have the following domain objects: class User { String name Transaction transaction static constraints = { transaction nullable: true } } class Transaction { boolean …

grails gorm hibernate-criteria
ORA-00972: identifier is too long - Best strategy to avoid it in Grails

I am getting "ORA-00972: identifier is too long" error while saving a domain class object. Caused by: org.hibernate.exception.…

oracle hibernate grails gorm
How do you disconnect an object from it's hibernate session in grails?

I'm trying to do this, but I get the error. "a different object with the same identifier value was already …

grails gorm