grails.gorm.tests.TestEntity.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
/**
* @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
child index:true
}
static constraints = {
name blank:false
child nullable:true
age nullable:true
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy