Skip to content

Commit

Permalink
update sample to take nullability into consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
humazed committed Aug 25, 2017
1 parent ed8e9ef commit 059c651
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sample/src/main/java/com/huma/roomforasset/Dao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ interface ChinookDao {
childColumns = arrayOf("ReportsTo"))))
data class Employees(
@PrimaryKey @ColumnInfo(name = "EmployeeId") var employeeId: Int = 0,
@ColumnInfo(name = "LastName") var lastName: String? = "",
@ColumnInfo(name = "FirstName") var firstName: String? = "",
@ColumnInfo(name = "LastName") var lastName: String = "",
@ColumnInfo(name = "FirstName") var firstName: String = "",
@ColumnInfo(name = "Title") var title: String? = "",
@ColumnInfo(name = "ReportsTo") var reportsTo: String? = "",
@ColumnInfo(name = "BirthDate") var birthDate: String? = "",
Expand All @@ -46,8 +46,8 @@ data class Employees(
childColumns = arrayOf("SupportRepId"))))
data class Customers(
@PrimaryKey @ColumnInfo(name = "CustomerId") var id: Int = 0,
@ColumnInfo(name = "FirstName") var FirstName: String? = "",
@ColumnInfo(name = "LastName") var LastName: String? = "",
@ColumnInfo(name = "FirstName") var FirstName: String = "",
@ColumnInfo(name = "LastName") var LastName: String = "",
@ColumnInfo(name = "Company") var Company: String? = "",
@ColumnInfo(name = "Address") var Address: String? = "",
@ColumnInfo(name = "City") var City: String? = "",
Expand All @@ -56,6 +56,6 @@ data class Customers(
@ColumnInfo(name = "PostalCode") var PostalCode: String? = "",
@ColumnInfo(name = "Phone") var Phone: String? = "",
@ColumnInfo(name = "Fax") var Fax: String? = "",
@ColumnInfo(name = "Email") var Email: String? = "",
@ColumnInfo(name = "Email") var Email: String = "",
@ColumnInfo(name = "SupportRepId") var SupportRepId: Int? = 0
)

0 comments on commit 059c651

Please sign in to comment.