Created
June 17, 2019 17:31
-
-
Save DanishAmjad12/1645ddb626540f9657c9811269793140 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
package com.roomdatabase | |
import androidx.room.ColumnInfo | |
import androidx.room.Entity | |
import androidx.room.PrimaryKey | |
@Entity | |
class BookEntity { | |
@PrimaryKey | |
var bookId: Int =0 | |
@ColumnInfo (name ="BookName") | |
var bookName: String ="" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment