Mixing table per subclass and per hierarchy in hibernate
- by Xelluloid
In my database there are two three tables. The first one, table ABSTRACT, holds three columns
id, type, someText
This table contains all abstract information for the abstract class abstract. Now the two tables CONCRETEONE and CONCRETETWO contain all information for the concrete classes concreteOne and concreteTwo. Now I know I could use the table per subclass strategy from hibernate to create a mapping with inheritance. But as I have a column that marks the type of the concrete implementation could it be possible to create some mixed behaviour like a table per subclass strategy with an discriminator?