Created
March 25, 2017 20:38
-
-
Save bytekast/9e30ebdd38a268851d8c513b41604949 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
@Entity | |
@ToString | |
@CompileStatic | |
class User { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
Long id | |
String firstName | |
String lastName | |
User(){} | |
User(String firstName, String lastName) { | |
this.firstName = firstName | |
this.lastName = lastName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment