grails-orm
help on error org.hibernate.StaleObjectStateException
Please help me get around this error . It comes sometimes at other times it does. I know its because of concurrent requests but how to overcome it ?? 开发者_运维技巧I tried lock instead of get but it[详细]
2023-03-26 05:51 分类:问答Grails, attribute in the relationship (join table)
With grails how can I make an attribute on a relation in the join table. like: Class A in relation with Class B as a role X. Class A in relation with Class C as a role Y.[详细]
2023-03-25 21:00 分类:问答grails sum one-to-many
I need a help with what I believe is very trivial stuff. class User { String name static hasMany = [files : File][详细]
2023-03-25 18:29 分类:问答Grails:Generating Custom ID
I have a domain object Issue that has a property Date createTime, that I want to be used as the开发者_JS百科 id by GORM with some custom logic.[详细]
2023-03-25 15:54 分类:问答Why grails throwing null pointer exception while accessing hasMany relationship first time?
I have a strange problem. I have two domain classes User and Post with fields: class User { String name static hasMany = [posts: Post][详细]
2023-03-25 00:29 分类:问答How do I create association by joining non primary key column
class Contact { String name String numbe开发者_运维技巧r } class Message { String text String number[详细]
2023-03-24 17:05 分类:问答How to exclude some columns with GORM with dynamic finders?
I have the following domain object: class DbDeployment { static constraints = { startDate(nullable: false)[详细]
2023-03-24 09:35 分类:问答Grails PagedResultList
Is there any way to get a PagedResultList in grails without using criteria?I would like to avoid criteria as they are slight开发者_运维问答ly more complex and make unit testing rather annoying.Code Be[详细]
2023-03-24 03:31 分类:问答Grails - testing GORM relationships
Bit of a newbie to Grails here. I have 2 domain objects linked with a hasMany relationship like so: class Accommodation[详细]
2023-03-23 18:36 分类:问答In GORM, how to maintain the order of 'hasMany' field for display purposes?
I\'m using grails 1.3.7. Let\'s say we have 2 domains: News, Topic and these are the implementation: class News {[详细]
2023-03-23 08:57 分类:问答