Question from the Hibernate test

How to create a single table for all the entity classes in Hibernate?

Hard

Considerate the following structure of Entity classes:

Entity classes structure

By what should be replace "XXXXX" to obtain only one table "Employe" with Hibernate?

@Entity
@Table(name = "Employe")
@XXXXX
@DiscriminatorColumn(
    name = "TypeE"
   , discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue("Employe")
public class Employe implements Serializable {
    // ...
}
Author: ManuvaiStatus: PublishedQuestion passed 16 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!