grails.gorm.tests.TestEntity.groovy Maven / Gradle / Ivy
package grails.gorm.tests
import grails.persistence.Entity
/**
* @author graemerocher
*/
@Entity
class TestEntity implements Serializable {
Long id
Long version
String name
Integer age = 30
ChildEntity child
static mapping = {
name index:true
age index:true, nullable:true
child index:true, nullable:true
}
static constraints = {
name blank:false
child nullable:true
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy