Last active
August 11, 2017 06:15
-
-
Save SubhrajyotiSen/963fad5552adccd3853d122465c474db to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import java.util.Date; | |
@Entity | |
public class BorrowModel { | |
@PrimaryKey(autoGenerate = true) | |
public int id; | |
private String itemName; | |
private String personName; | |
@TypeConverters(DateConverter.class) | |
private Date borrowDate; | |
public BorrowModel(String itemName, String personName, Date borrowDate) { | |
this.itemName = itemName; | |
this.personName = personName; | |
this.borrowDate = borrowDate; | |
} | |
public String getItemName() { | |
return itemName; | |
} | |
public String getPersonName() { | |
return personName; | |
} | |
public Date getBorrowDate() { | |
return borrowDate; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment