All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grails.gorm.tests.TestEntity.groovy Maven / Gradle / Ivy

There is a newer version: 9.0.0-M2
Show newest version
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