Issue Details (XML | Word | Printable)

Key: NUCCORE-657
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Andy Jefferson
Reporter: Werner Froidevaux
Votes: 0
Watchers: 0
Operations

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

SchemaTool: "create" ability to just generate tables, or just constraints

Created: 09/May/07 12:05 AM   Updated: 07/Mar/11 05:34 PM   Resolved: 05/Mar/11 03:37 PM
Component/s: Datastore Support
Affects Version/s: None
Fix Version/s: 3.0.0.m3

File Attachments: 1. Text File SchemaTool.patch (0.7 kB)


Severity: Development


 Description  « Hide
getPMFForMode() initializes properties as follows:
1) read user properties from file
2) set mandatory properties using addProperty()

Step 2) desctroys properties read from file in step 1). addProperty() must not overwrite user-defined property with default value.

Patch is attached.


Sort Order: Ascending order - Click to sort in descending order
Werner Froidevaux added a comment - 09/May/07 12:06 AM
SchemaTool.patch for ddProperty().

Andy Jefferson added a comment - 09/May/07 09:17 AM
addProperty MUST overwrite user properties. If you are in SchemaTool create then you MUST have autoCreate enbaled. You cannt let users turn it off. With that in mind please explain what situation you are talking about

Werner Froidevaux added a comment - 09/May/07 10:51 AM
I am thinking of AUTO_CREATE_CONSTRAINTS_PROPERTY. The addProperty() was added in revision 1.83. Shouldn't it be possible to create tables without constraints? Or if I have the tables already create the constraints only, etc.? Anyway, if user settings are overwritten then SchemaTool should fail.

Andy Jefferson added a comment - 09/May/07 11:26 AM
SchemaTool has never this far had a role to generate just one component of the schema, hence priority and type of issue changed

Andy Jefferson added a comment - 05/Mar/11 03:37 PM
SVN trunk (3.0) allows user to provide autoCreateXXX (and validateXXX) to control whether all of the schema is created, or just tables etc