grails-orm
Grails projection on arithmetic expression with executeQuery()?
I need to get a sum of all items sold per order per store. I am running a sum() on expression using executeQuery(). It works fine as shown below but I wanted to know if there is a better, groovier way[详细]
2023-04-10 04:25 分类:问答Retrieving a list of Grails composite id properties?
Ho开发者_StackOverfloww can I retrieve a list of Grails composite id properties? I have tried the following but the id property is returning a Long:[详细]
2023-04-09 11:35 分类:问答What is the best way to add logic to delete() on Grails domain class?
I need to make changes to other domain classes when an instance of a particular domain class is deleted. What is the best way to do this? I don\'t want to wait until commit or flush so I don\'t think[详细]
2023-04-08 17:55 分类:问答Grails: derived fields in domain classes
Suppose I have a domain class branch which has several members: … static hasMany = [ members:Member ];[详细]
2023-04-08 04:23 分类:问答Grails / GORM criteria query with hasmany String
I have a domain object (Cat) like this: class Cat { String name static hasMany = [ 开发者_Python百科nicknames: String[详细]
2023-04-07 16:50 分类:问答How to findByAll with a Domain hasMany member?
I have: static hasMany = [ services:String, tags:String ] I need to search the database for services. Thi开发者_如何学Gos is the JSON for services[详细]
2023-04-07 08:55 分类:问答Binding JSON to nested Grails Domain Objects
I\'m developing a RESTful interface which is used to provide JSON data for a JavaScript application. On the server side I use Grails 1.3.7 and use GORM Domain Objects for persistence. I implemented a[详细]
2023-04-07 03:37 分类:问答Gorm vs. Hibernate Mapping in Grails?
I know that Gorm uses Hibernate under the covers to achieve what it does.As of yet I have not found a way to use the hibernate mapping strategy for inheritance with a per-table-subclass with Gorm and[详细]
2023-04-07 03:18 分类:问答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 分类:问答In Grails is there something in domain class like onLoad()?
Guys, I have a following domain class: class Product { String name, String productRecord, static transients = [\'productRecord\'][详细]
2023-04-06 00:54 分类:问答