JPA annotations

Report a typo

There is the following table:

Private_Email table diagram

Match the entity fields with the corresponding annotations:

Java
@Entity
//1
public class PVTEmail {

    //2
    @Column(name = "email_id")
    private int id;

    private boolean important;

    //3
    private String emailContent;
   
    //4
    private String emailLabel;
}
Kotlin
@Entity
//1
class PVTEmail {
    //2
    @Column(name = "email_id")
    var id: Int = 0

    var important: Boolean = false

    //3
    var emailContent: String? = null

    //4
    var emailLabel: String? = null
}
Match the items from left and right columns
1
2
3
4
@Id
@Table(name = "Private_Email")
@Column(name = "label")
@Column(name = "content")
___

Create a free account to access the full topic