Hi,
I am using Hibernate to try to create a set of objects, where I have superclasses and some that extend them. I want the hierarchy to be produced in the classes created by the Hbm2Java tool. Is this possible?
For example, I have Furniture as a superclass that has various attributes and associations, and I also have Bookcase, Bed, and Desk that extend that have specific attributes and associations. I want to make sure that the classes that use the persistence layer can cast all instances to Furniture to perform work on that type of object.
Is this possible with Hibernate? Any recommendations for implementation?
thanks,
Max
|