Skip to content

Commit

Permalink
Entity Creation:created two models in form of entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kulloveth committed Apr 26, 2020
1 parent ebb1972 commit 0e62b49
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
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

0 comments on commit 0e62b49

Please sign in to comment.