-
-
Save horaceheaven/c85a9414dc787aa5c337 to your computer and use it in GitHub Desktop.
Creating a sample Todo database model
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
@DatabaseTable(tableName = "todo") | |
public class Todo { | |
@DatabaseField(generatedId = true) | |
private Long id; | |
@DatabaseField | |
private String title; | |
@DatabaseField | |
private String description; | |
@DatabaseField | |
private Date dateCreated; | |
@DatabaseField | |
private Date dueDate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't compile in https://gist.github.com/horaceheaven/c85a9414dc787aa5c337#file-todo-java with ormlite4.48
The class needs a empty constructor and the constructor that you are using in the activity