Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created April 18, 2019 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recursivecodes/190b594a6d3956aae640aa25b63528ff to your computer and use it in GitHub Desktop.
Save recursivecodes/190b594a6d3956aae640aa25b63528ff to your computer and use it in GitHub Desktop.
package codes.recursive.gorm.atp.model
import grails.gorm.annotation.Entity
import groovy.transform.CompileStatic
import javax.validation.constraints.NotNull
import javax.validation.constraints.Size
@CompileStatic
@Entity
class Person {
@NotNull
@Size(min=5, max=50)
String firstName
@Size(min=5, max=50)
String lastName
@NotNull
Boolean isCool = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment