grails-orm
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/GORM "in" criteria
Is it possible to do an \"in\" criteria using the GORM criteria. I\'m looking for the equivalent of the following SQL[详细]
2023-04-13 07:53 分类:问答Stack overflow in grails caused by obscure def recursion
this is a pretty strange issue. I have a many-to-many relationship between two classes, Subscription & Scenario. Thing is I\'m trying to delete the relation between them when either is deleted us[详细]
2023-04-12 11:53 分类:问答Grails/GORM: inconsistent behavior for inherited domain classes (Testing VS Bootstrap)
I am seeing an inconsistency in the behavior of my application VS the outcome of a test-case that I have for an inherited domain class. Here are the classes involved in the issue (only part of code pr[详细]
2023-04-11 16:49 分类:问答Grails - composite key class usage
I\'ve recently changed some mapping in my app and now it looks like this. Scenario - many-to-many - Subscription[详细]
2023-04-11 15:26 分类:问答Which Dynamic methods are not included in Grails Unit Tests?
Reading the documentation on Grails Unit testing I came across the following: In Grails you need to be particularly aware of the difference between[详细]
2023-04-11 12:04 分类:问答String IDs in grails - how exactly can it be done?
Can somebody show me clear, complete, 100% working way to set string-typed field 开发者_如何学Pythonas ID in grails? I\'ve read the docs, then read all similar ranting on the web, but failed to create[详细]
2023-04-11 10:17 分类:问答How to get the name of the table GORM object is mapped to?
Say I have something like: class Foo { static mapping = { table \'foo_table\' 开发者_运维问答} } How can I get the name of foo_table if I have a reference to an instance of this object?Import org.c[详细]
2023-04-10 17:26 分类:问答Hibernate - Collection not populating all children
I have been having a very weird issue in hibernate. We are using Grails and GORM to develop an application.[详细]
2023-04-10 11:55 分类:问答why read-only access is writing to my db, in GORM?
In my app, I have a code like this: // 1 Foo.get(123).example = \"my example\" // as expected, don\'t change value in db[详细]
2023-04-10 10:43 分类:问答