-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Entity Creation:created two models in form of entity
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/developer/kulloveth/expandablelistsamplewithroom/model/Continents.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.developer.kulloveth.expandablelistsamplewithroom.model | ||
|
||
import android.os.Parcelable | ||
import androidx.room.ColumnInfo | ||
import androidx.room.Entity | ||
import androidx.room.PrimaryKey | ||
import kotlinx.android.parcel.Parcelize | ||
|
||
@Parcelize | ||
@Entity(tableName = "continent-table") | ||
data class Continents(@PrimaryKey @ColumnInfo(name = "continent")val ContinentName: String) : Parcelable |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/developer/kulloveth/expandablelistsamplewithroom/model/Countrys.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.developer.kulloveth.expandablelistsamplewithroom.model | ||
|
||
import android.os.Parcelable | ||
import androidx.room.ColumnInfo | ||
import androidx.room.Entity | ||
import androidx.room.PrimaryKey | ||
import kotlinx.android.parcel.Parcelize | ||
|
||
@Parcelize | ||
@Entity(tableName = "county-table") | ||
data class Countrys(@PrimaryKey @ColumnInfo(name = "country") val countryName: String) : Parcelable |