Joined: Wed Jan 20, 2010 3:43 pm Posts: 3
|
I have a class mapping with composite id mapping of 2 properties. I extended it into another class which has one additional (primary-key) which makes it to have composite id of 3 properties. I need to do this coz subclass shares rest of the properties from super class but values coming from a different table.
Both super and sub class are based off of different tables altogether and there is no relationship between them. just that they share the same field names.
Its a perfect case of java inheritance, but how do I achieve it in Hibernate.
|
|