grails-domain-class
Grails - multiple objects database relationship
I have a non-Grails specific question, but I intend to implement it with it. Anyway. I would like to ha开发者_开发问答ve a One-to-Many domain class relationship, but I would like the Many part to be o[详细]
2023-04-13 07:56 分类:问答Grails - How to return a collection from a belogsTo relationship with a filter
I have a \'User\' and a \'UserOrder\' class in grails. There is a \'belongsTo\' relationship defined on the userOrder class and a hasMany relationship on the \'User\' class, like so:[详细]
2023-04-10 05:44 分类:问答Should I convert my Grails domain relations to use Hibernate Bags? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-07 00:30 分类:问答How to show or hide fields on a GSP based on a selection in a combo-box
I\'m still new to grails, so I\'m really sorry for asking somet开发者_JAVA技巧hing like this. I have a domain that could be divided in 3 types, so I\'d like to create a combo-box and depending on whi[详细]
2023-04-04 18:26 分类:问答Using JSON to create an object in Groovy/Grails
I have a Groovy/Grails website that is being used to send data to Android clients via JSON. I have created both the Android client and the Groovy/Grails website; and they can output the same objects i[详细]
2023-04-03 16:15 分类:问答Inherit Grails Domain Class properties from a base Class
Im trying to create a Domain Class Constructor that inherits another class properties dynamically. But I cannot get it to work properly.[详细]
2023-03-31 14:31 分类:问答Grails createCriteria group by (groupProperty function) multiple attributes
I\'m wondering if grails createCriteria supports group by multiple attributes like pure sql does. I\'d like to list entries like this:[详细]
2023-03-30 05:55 分类:问答How to create a domain transient property for based on a child collection's property on Grails?
I have the following domain classes: class ParentClass { String myProperty static hasMany = [ childClasses : ChildClass][详细]
2023-03-29 03:33 分类:问答grails 1.3.7 + 2.0, section 5.2.1.1, Many-to-one and one-to-one
Section 5.2.1.1 has examples A - C, which seem a bit confusing: Example B:Is this still a many-to-1 relationship, like Example A (i.e. same table setup)?At the end 开发者_Python百科it says, \"to make[详细]
2023-03-28 04:06 分类:问答getting grails 2.0.0M1 config info in domain object, and static scope?
How do I get to the Config.groovy informationfrom a domain object, or from a static scope? I\'m using ConfigurationHolder.config.* now, but that and ApplicationHolder are deprecated so I\'d lik开发者_[详细]
2023-03-26 19:06 分类:问答