Top "Gorm" questions

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

Multiple hasMany relationships to same domain class in Grails

I'm using Grails, and I have a domain model with multiple hasMany attributes to the same domain class, which looks …

grails gorm has-many
Hibernate/GORM: collection was not processed by flush()

I have an integration test in my Grails application that fails when I try to save an entity of type …

java hibernate grails gorm
What does mean Hibernate's "unsaved-value mapping was incorrect"?

There is a famous exception: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was …

hibernate gorm
How do I create a composite primary key using GORM?

I have three domain classes: Beer, Review, and Reviewer. I want the Review table to create a many to many …

grails gorm indexing composite-primary-key
How do I clear and replace a collection in a one-to-many relationship in Grails/Groovy

This question is in two parts, first part is about clearing a list and second part is about assigning an …

grails gorm
Grails GORM: could not initialize proxy - no Session

I have a method with the following structure: public void run(){ ... for (...) { //this part works correct User.withTransaction { User user = …

hibernate grails gorm
Is it possible for a Grails Domain to have no 'id'?

Is it possible to create a table that has no 'id'? For example, this is my domain: class SnbrActVector { int …

mysql hibernate grails gorm
Grails default sort of "hasMany" domain attributes

I'm trying to set default sort of my hasMany attribute using mapping statement. I'm following the grails doc but it …

grails gorm grails-domain-class
How to change primary key column in grails?

I have a domain class having an Integer variable 'code'. my requirement is to make 'code', primary key column for …

grails gorm
grails deleted object would be re-saved by cascade error

I have the project as set-up below. I am trying to delete a project, and I get the following: 2010-09…

hibernate gorm grails