
September 1st, 2005, 04:50 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Location: muenchen
Posts: 5
Time spent in forums: 1 h 14 m 49 sec
Reputation Power: 0
|
|
|
hibernate one class two tables ?
Dear All,
I have tree like data structure with different types of nodes. Each node type is a single class. There is number of common variables for each class (like: name, parent_id, distanceFromRoot) plus variables which are specific for given node type.
My idea was to map all nodes to one table regardless of type as a entity type - this is easy part; plus store specific variables as a value type in the different tables. That way I have one table with tree structure and one with specific information.
The question would be is it possible to map part of class variables to different column.
Sincerely,
Pawel
|