Skip to content

Instantly share code, notes, and snippets.

@janishar
Created February 13, 2017 10:45
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 janishar/5b6047929a5c98f9fe5bf7134802ab89 to your computer and use it in GitHub Desktop.
Save janishar/5b6047929a5c98f9fe5bf7134802ab89 to your computer and use it in GitHub Desktop.
@Entity(nameInDb = "user")
public class User {
@Id(autoincrement = true)
private Long id;
@Property(nameInDb = "name")
private String name;
@Property(nameInDb = "created_at")
private String createdAt;
@Property(nameInDb = "updated_at")
private String updatedAt;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment