grails.gorm.tests.ClassWithNoArgBeforeValidate.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grails-datastore-gorm-tck Show documentation
Show all versions of grails-datastore-gorm-tck Show documentation
GORM - Grails Data Access Framework
package grails.gorm.tests
import grails.persistence.Entity;
@Entity
class ClassWithNoArgBeforeValidate implements Serializable {
Long id
Long version
def noArgCounter = 0
String name
def beforeValidate() {
++noArgCounter
}
static constraints = {
name blank: false
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy