Question from the Hibernate test

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

Medium

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 77 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!