Setting entity types

Report a typo

Complete the code so that it cascades all operations.

Java
@Entity
@Table(name = "addresses")
public class Address{
    @Id
    @Column(name = "address_id")
    private long addressId;

    @Column(name = "contact_name")
    private String contactName;

    @OneToMany(cascade = __________)
    private List<Contact> contacts = new ArrayList<>();

}
Kotlin
@Entity
@Table(name = "addresses")
data class Address (
    @Id
    @Column(name = "address_id")
    var addressId: Long = 0L,

    @Column(name = "contact_name")
    var contactName: String = "",

    @OneToMany(cascade = [__________])
    var contacts: List<Contact> = ArrayList()
)
Select one option from the list
___

Create a free account to access the full topic