JPA Persistence properties

Report a typo

There is the following the table:

Message table diagram

The entity has the following getters:

  1. Java
    @Id
    @Column(name = "message_id")
        public int getId() {
    };
    Kotlin
    @Id
    @Column(name = "message_id")
        fun getId(): Int {
    }
  2. Java
    public String getTitle() {
    };
    Kotlin
    fun getTitle(): String? {
    }
  3. Java
    public int getNumber() {
    };
    Kotlin
    fun getNumber(): Int {
    }
  4. Java
    public boolean isEncrypted() {
    };
    Kotlin
    fun isEncrypted(): Boolean {
    }

Match table columns with the corresponding entity getters.

Match the items from left and right columns
1
2
3
4
message_id
encrypted
title
number
___

Create a free account to access the full topic