Dear Users,
I found strange problem while implementing below classes. When i started tomcat server, I found tables not getting created for Oracle database. Below is code snaps. Please help.
In persistence.xml I configured like below. <property name="hibernate.hbm2ddl.auto" value="create-drop" />
@Entity @Table(name = "sub_invoice") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "type_col", discriminatorType = DiscriminatorType.INTEGER) public abstract class Invoice implements java.io.Serializable, Cloneable {}
@Entity @DiscriminatorValue("1") public class CustomerInvoice extends Invoice {}
|