Computer scienceBackendSpring BootSpring DataSpring Data JPAJPA Entities

Embeddable and ElementCollection

Annotations

Report a typo

Match the annotations with their positions in the Person entity class:

Java
// 1
public class Person {
    // 2
    private Integer id;
    // 3
    private Profile profile;
    // 4
    private Set<String> phoneNumbers;

    // getters and setters
}
Kotlin
// 1
class Person(
    // 2
    var id: Int?,
    // 3
    var profile: Profile,
    // 4
    var phoneNumbers: Set<String>
)

Match the items from left and right columns
1
2
3
4
@ElementCollection
@Embedded
@Entity
@Id
___

Create a free account to access the full topic