Created
April 17, 2019 19:47
-
-
Save recursivecodes/ddaef167c4091776219bf7ade93f54e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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