Haven’t gotten anywhere with the
Here’s my issue: I have a pair of similar objects and an associated join table. On the database side, it’s fine if these are separate tables, but I want to maintain similarity because I will want to move records from one to the other. On the application side, I don’t know how to intersect inheritance (“DRY”) with Hibernate. It would make sense to put all the commonality in an abstract class and create two subclasses from that. This would necessitate two separate join classes as the relating entity would be different. However, this also means I cannot put common functionality in the abstract class as it would be referencing join class types. I could use an interface, but I cannot get data with Hibernate for interfaces.
How can I make Hibernate work for this case? I can post some example code if it would be helpful (I don’t feel like I’m explaining it well).