Usually I\'m using One-to-many relationship by this way : class Study { static hasMany = [ crfs : Crf ]
I\'ve got a class: class Test { List<BigDecimal> values static constraints = { values(unique: true)
In my grails app, in which I use GORM-JPA, I cannot define the order of the elements of the class using the constraints. If I autogenerate the views, they are all sorted alphabetically, instead of the
I have : def userList = []; if(!User.findAllByGrade(10)){ userList.add(new User()); }else{ ..... } <g:each in=\"${userList}\" var=\"user\">
I\'m having some problems while implementing on one class two different types of relations to another class.
I am using Grails 1.3.6 and I am having problems getting saves to cascade properly.The problem is specifically with classes that have two parent classes.A simplified version of what I am attempting is
I\'m working on Grails. At some point I have to fetch large sets of objects from the db, based on their ids.
Hibernate uses method calls to get the values of domain class properties by default. How can I configure direct field acces开发者_Go百科s with GORM?It\'s not directly supported but will be in 1.4. For
I\'m running grails 1.3.6 and I have this code: String hql = \'\'\' UPDATE ApiResponse a SET a.lockId = :lockId
I have a domain class InvoiceLine { String itemName BigDecimal unitCost Integer quantity } } I would like to come up with a grails closure using .withCriteria that does an aggregation of the (uni