db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-674) Support a way of defining inheritance strategy that results in a table per class with the table containing columns for all fields in the class (inc superclasses)
Date Fri, 28 Jan 2011 18:38:44 GMT
Support a way of defining inheritance strategy that results in a table per class with the table
containing columns for all fields in the class (inc superclasses)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JDO-674
                 URL: https://issues.apache.org/jira/browse/JDO-674
             Project: JDO
          Issue Type: New Feature
          Components: api, specification, tck
            Reporter: Andy Jefferson


JPA provides an inheritance strategy "TABLE PER CLASS". In JPA this is defined in the root
of an inheritance tree and implies that all classes in the inheritance tree have their own
table that contains columns for all fields (inc fields in superclasses). There is currently
no way to achieve this with JDO's strategy specification capability.

Propose we provide one of the following
1. Just have a strategy "complete-table" specified in the root of the inheritance hierarchy
that implies the same as the JPA situation. This is the simplest to define.

2. Have a strategy "complete-table" that can be specified on any class with the result that
this class has a table containing columns for all fields (inc superclasses). There are difficulties
in defining what happens in the case of a subclass - can it take any of the standard inheritance
strategy settings ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message