Issue Details (XML | Word | Printable)

Key: NUCRDBMS-465
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

Schema generation when having single table per inheritance tree and subclass has primitive field creates invalid schema

Created: 11/Nov/10 01:07 PM   Updated: 13/Nov/10 12:18 PM   Resolved: 11/Nov/10 02:39 PM
Component/s: ORM, Schema
Affects Version/s: 2.1.2, 2.2.0.m2
Fix Version/s: 2.1.3, 2.2.0.m3


 Description  « Hide
When we have

class Base
{
   ...
}
class Sub extends Base
{
   int primitiveField;
}

this tries to do an "ALTER TABLE ADD COLUMN PRIMITIVE FIELD NOT NULL". When part of the subclass and using table of superclass needs to either have a default value, or be nullable. The user could easily workaround this by marking the column nullability, but better to do it ourselves.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 11/Nov/10 02:39 PM
SVN trunk and branches/2.1 have this