I have 2 domain classes with a many-to-many relationship in grails: decks and cards. The setup looks like this:
I have an applicaton that contains some tables that are auto-generated from Grails domain classes and one legacy table (say table legacy) that have been created outside of Grails but are being mapped
I have a simple object 开发者_JAVA百科hierarchy, and I want to query each of the objects using list().The problem is that because of polymorphism, Task.list() returns both instances of type Task and C
I\'m a bit confused about t开发者_JAVA技巧he differences between using the static hasOne map and composing objects in domain classes. What are the differences between the two? ie.
The Grails code below throws the following exception when trying to .save() the Foo object: org.hibernate.TransientObjectException/
I need a way to be able to have a domain class to have many of itself.In other words, there is a parent and child relationship.The table I\'m working on has data and then a column called \"parent_id\"
Assume the following code in a Grails controller: def action = { ClassName o = ClassName.findByFoo(params.foo)
I have a table generated by GORM (Grails Domain). It has foreign key / index that generated random characters like FKAC7AAF67162A158F. I need to remove that field that not needed anymore.
I have a domain class, in which I\'ve defined some methods which give the object a score based on different algorithms (eg. popularity).
Grails GORM does not persist abstract domain classes to the database, causing a break in polymorphic relationships. For example: