Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created April 17, 2019 19:47
Show Gist options
  • Select an option

  • Save recursivecodes/ddaef167c4091776219bf7ade93f54e9 to your computer and use it in GitHub Desktop.

Select an option

Save recursivecodes/ddaef167c4091776219bf7ade93f54e9 to your computer and use it in GitHub Desktop.
package codes.recursive.model
import grails.gorm.annotation.Entity
import groovy.transform.CompileStatic
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotNull
import javax.validation.constraints.Size
@Entity
@CompileStatic
class Person {
@NotNull
@NotBlank
@Size(min=5, max=10)
String firstName
String lastName
Boolean isCool = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment