Inheritance and Polymorphism.explicit
-------------------------------------
Key: HHH-6283
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6283
Project: Hibernate Core
Issue Type: Bug
Reporter: Nicolás Gómez Navarrete
@Entity
@Table(name="BATCH_JOB")
public class Job {
.........................
}
@Entity()
@org.hibernate.annotations.Entity(polymorphism=PolymorphismType.EXPLICIT)
public class InsuranceJob extends Job {
.........................
}
Expected:
Hibernate generates table with the state from parent plus child state.
No @Inheritance(SINGLE_TABLE) applied
Actual result:
Hibernate generates table with DTYPE (discriminator) as if @Inheritance(SINGLE_TABLE) was
defined.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira