saving date type in room database
//Table names in SQLite are case insensitive.
@Entity(indices = {@Index(value = "first_name")})
public class User {
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "user_id")
public long userId;
@ColumnInfo(name = "first_name")
public String firstName;
@ColumnInfo(name = "created_date")
@TypeConverters({TimestampConverter.class})
public Date createDate;
@ColumnInfo(name = "date_of_birth")
@TypeConverters({DateConverter.class})
public Date dob;
@Embedded
public Address address;
}