DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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.