Hi,
I’m wondering if it's possible to configure subclasses without any discriminator? When you use SINGLE_CLASS inheritance strategy you must specify a discriminator column/value. By default is will populate the column as DTYPE which results in the following error: ORA-00904: "DTYPE": invalid identifier
I have an entity which extends from another base entity. The parent entity has all the persistence annotations. The child class is used only for creating new records since I have some additional business logic around how the object can be created. I know I can modify this to have my child simply wrap the parent instead, decorator pattern, but I was wondering if it was possible through inheritance?
So for instance, I want to be able to do the following:
@Entity @Table(name="MY_BASE_OBJECTS") public class BaseObject { @Column(...) ... }
@Entity public class CreatableObject extends BaseObject { ... }
Any help would be greatly appreciated! Thanks.
|