Creating like entity

Create a like entity named LikeObj.kt with the @Entity annotation to convert this class into an entity class. Here is the code of this model class:

@Entity
class LikeObj(mProfile: Profile) : Serializable {

@Id
@GeneratedValue
var id: Long? = 0

@ManyToOne
@JoinColumn(name = "profile_id")
@JsonIgnoreProperties("username","password","email","accCreatedTime","firstName","lastName",
"contactNumber","dob","city","country")
var profile: Profile? = mProfile
}

Here we have one element and one constructor. Here is the constructor:

@Entity
class LikeObj(profile: Profile) : Serializable {
-----
-----
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.134.130