Issue Details (XML | Word | Printable)

Key: NUCCORE-1127
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Refactor schema persistence properties to have standard naming "datanucleus.schema.XXX"

Created: 16/Feb/14 10:06 AM   Updated: 01/Mar/14 07:39 PM   Resolved: 16/Feb/14 08:22 PM
Component/s: Configuration, Datastore Support, Persistence
Affects Version/s: None
Fix Version/s: 4.0.0.m1


 Description  « Hide
We currently have
datanucleus.autoCreateSchema
datanucleus.autoCreateTables
datanucleus.autoCreateColumns
datanucleus.autoCreateConstraints
datanucleus.validateSchema
etc

but would be better as
datanucleus.schema.autoCreateAll
datanucleus.schema.autoCreateTables
datanucleus.schema.autoCreateColumns
datanucleus.schema.autoCreateConstraints
datanucleus.schema.validateAll
datanucleus.schema.validateTables
datanucleus.schema.validateColumns
datanucleus.schema.validateConstraints

and then we could add on others to cater for "schema evolution", such as
datanucleus.schema.autoDeleteColumns (for when a column exists but is not needed by the current classes)


Andy Jefferson added a comment - 16/Feb/14 07:14 PM
Also "datanucleus.fixedDatastore" can be removed because it is basically the same thing as "datanucleus.schema.autoCreate" = false.

Andy Jefferson made changes - 16/Feb/14 08:22 PM
Field Original Value New Value
Description We currently have
datanucleus.autoCreateSchema
datanucleus.autoCreateTables
datanucleus.autoCreateColumns
datanucleus.autoCreateConstraints
datanucleus.validateSchema
etc

but would be better as
datanucleus.schema.autoCreate
datanucleus.schema.tables.autoCreate
datanucleus.schema.tables.validate
datanucleus.schema.columns.autoCreate
datanucleus.schema.columns.validate
datanucleus.schema.constraints.autoCreate
datanucleus.schema.constraints.validate

and then we could add on others to cater for "schema evolution", such as
datanucleus.schema.columns.autoDelete (for when a column exists but is not needed by the current classes)
We currently have
datanucleus.autoCreateSchema
datanucleus.autoCreateTables
datanucleus.autoCreateColumns
datanucleus.autoCreateConstraints
datanucleus.validateSchema
etc

but would be better as
datanucleus.schema.autoCreateAll
datanucleus.schema.autoCreateTables
datanucleus.schema.autoCreateColumns
datanucleus.schema.autoCreateConstraints
datanucleus.schema.validateAll
datanucleus.schema.validateTables
datanucleus.schema.validateColumns
datanucleus.schema.validateConstraints

and then we could add on others to cater for "schema evolution", such as
datanucleus.schema.autoDeleteColumns (for when a column exists but is not needed by the current classes)
Andy Jefferson added a comment - 16/Feb/14 08:22 PM
GitHub master makes this change; docs for 4.0 updated

Andy Jefferson made changes - 16/Feb/14 08:22 PM
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 4.0.0.m1 [ 12081 ]
Fix Version/s 4.0.0.release [ 12080 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Mar/14 07:39 PM
Status Resolved [ 5 ] Closed [ 6 ]