Skip to content

Instantly share code, notes, and snippets.

@bytekast
Created March 25, 2017 20:38
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 bytekast/9e30ebdd38a268851d8c513b41604949 to your computer and use it in GitHub Desktop.
Save bytekast/9e30ebdd38a268851d8c513b41604949 to your computer and use it in GitHub Desktop.
@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