[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3692) Inheritance Mapping in "table per class hierarchy": Allow for inheriting of properties from abstract classes above abstract class where table is defined

Bradley Wagner (JIRA) noreply at atlassian.com
Wed Jan 7 10:58:38 EST 2009


Inheritance Mapping in "table per class hierarchy": Allow for inheriting of properties from abstract classes above abstract class where table is defined
--------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HHH-3692
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3692
             Project: Hibernate Core
          Issue Type: Improvement
    Affects Versions: 3.2.6
            Reporter: Bradley Wagner


I'm basically using a "table per class hierarchy" mapping approach for a particular subset of my domain objects. 

The issue is that I'd like to inherit a number of properties in my class that defines the table from some other base classes above it.

<union-subclass name="Template" abstract="true" table="template" extends="NamedObject">
     .... template properties ...
</class>

<subclass name="SiteTemplate" discriminitator-value="ST" extends="Template">
   .... site template properties ....
</subclass>

<subclass name="GlobalTemplate" discriminitator-value="GT" extends="Template">
   .... global template properties ....
</subclass>

<class name="BaseObject" abstract="true">
   <id name="id" type="string" unsaved-value="null'/>
</class>

<union-subclass name="NamedObject" abstract="true" extends="BaseObject">
    <property name="name"/>
    <property name="path"/>
</union-subclass>

The problem is that it's not possible for Template to extend NamedObject AND define a table and I'd prefer not to have to remap all of these properties that already exist in other mappings for other parts of my object hierarchy.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list