Hello guys!
I will try to summarize my question.
I have a base class "Base" with three properties. Four classes inherit from it - "A", "B", "C" and "D". They add their own additional properties. I have mapped this with InheritanceType.JOINED. Now I want to search for "Base" entities, which means that I search on the common properties of all "A", "B", "C" and "D" entities. I know how to do that. Hibernate supports it out of the box.
But I want to have a feature to search not on all types, but on a part of them. For example there are checkboxes and the user has chosen to search on "A" and "D". Again the search is on the common three properties of the "Base" class. Do I have to add an additional column to the base class to differentiate the type and populate it manually? I am sure Hibernate has something out of the box, but I can't find it.
Regards, Petar