I have a domain class which has around 20 properties. A findBy on the domain class results in a select query which has all the columns selected from the database, which can be a performance hit when t
Trying to integration test Grails GORM delete on an object with beforeDelete event.Problem is that the beforeDelete event is not being fired in Integration Tests:
Hi I have a domain that so simple like the following // page 52 Bankruptcy Questions class FamilyLawFinancial{
I want to ensure that one of two form fields representing a boolean value is checked. But there is no appropriate constraint to do this. nullable: false does not work.
I would like to check to make sure two fields are not equal and one is greater then the other. Say yearBorn and yearMarried. They cannot be开发者_Go百科 equal and yearMarried must be greater then year
Say I have a user domain class with fields username and password. For simplicity say I would like to store the passwords as a SHA-512 hash. I also want to validate the password prior to hashing it, bu
I\'m trying to set default sort of my hasMany attribute using mapping statement. I\'m following the grails doc but it doesn\'t work for me (grails 1.3.5). My code looks like:
I am a newbie in grails and groovy. I have a Project domain-class with start and end date. I want to put in a constraint specifying that the end date needs to be greater than the start date(and then f
I am wondering if is possible to implement following domain model. Let\'s have a domain class which contains set of intervals (joda time). I can use org.joda.time.contrib.hibernate.PersistentInterval
I need to validate save action between 3 domains, here is relationship : User - JobProcess : one-to-many, JobProcess - Heatmap : one-to-many.