Declare strategy type

Report a typo

We have an abstract class Potter which has inheritors: Master and Apprentice classes. We want to choose a mapping strategy so that 3 tables are created in the database for each entity.

Write down a missing strategy type to complete the declaration of the Potter abstract class.

Java
@Entity
@Inheritance(strategy = __________)
public abstract class Potter {
    @Id
    private Long id;
    private String name;

    // constructor, getters, setters
}
Kotlin
@Entity
@Inheritance(strategy = __________)
abstract class Potter {
    @Id
    open var id: Long = 0
    open var name: String = ""
}
Enter a short text
___

Create a free account to access the full topic