Medium
Considerate the following structure of Entity classes:
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 70 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Hibernate
2
Declare an org.hibernate.SQL logger at DEBUG level, in the configuration with hibernate.show_sql = true2
Hibernate states: transient, persistent, detached2
Hibernate: What is the difference between lazy and eager loading?1
Hibernate: Person must have the @Table(âper_person â) annotation1
Hibernate annotations to map a class to a database table.