We have a third party entity inheritance structure where we are extending their CUSTOMER_CREDIT_ACCOUNT, this entity uses a inheritance strategy of InheritanceType.JOIN with it's superclass. We effectively want to subclass this entity (actually two subclasses) and ideally using the default discriminator column, which we have added by way of a SQL ALTER to CUSTOMER_CREDIT_ACCOUNT. These two subclasses will have an inheritance strategy of InheritanceType.SINGLE_TABLE with CUSTOMER_CREDIT_ACCOUNT.
This "structure" does not seem to work in an Oracle DB environment, at runtime I am getting:
Code:
ORA-00942: table or view does not exist
and beefing up the SQL logging I see that it does not seem to be resolving my subclass entity to it's table name, so the error fits!
Looking at this problem I almost want to be adding a InheritanceType.SINGLE_TABLE strategy to CUSTOMER_CREDIT_ACCOUNT in addition to the existing InheritanceType.JOIN (with it's superclass), almost like saying well we want JOINED upwards and SINGLE_TABLE downwards (from CUSTOMER_CREDIT_ACCOUNT), but this cannot be specified.
Without creating another table I do not see resolution -> extending CUSTOMER_CREDIT_ACCOUNT with an actual table, including the DTYPE and then subclassing, using this discriminator column to specify.
Any pointers or even solutions would be greatly appreciated!