[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6283) Inheritance and Polymorphism.explicit

Nicolás Gómez Navarrete (JIRA) noreply at atlassian.com
Thu Jun 2 10:52:24 EDT 2011


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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list