Created
April 18, 2019 15:40
-
-
Save recursivecodes/190b594a6d3956aae640aa25b63528ff to your computer and use it in GitHub Desktop.
This file contains 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.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