Hibernate version: 3.1
Greetings,
I'm in the process of refactoring a legacy app we use in-house and thought I would integrate Hibernate. I have the following table schema and am having a heck of a time trying to figure out how to map it.
My original idea was to map the CATEGORY_* tables as joined-subclasses of the CATEGORY table each with a Set of their corresponding 'items'. The CATEGORY table is mapped as an abstract superclass to the CATEGORY_* tables/classes. This doesn't appear to work as the CATEGORY_* tables have their own primary key. Further, I don't think I'm approaching this correctly.
Am I even thinking about this properly?
Any suggestions on a different strategy to solve this?
Many thanks.