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: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

TableGenerator ignores initial value when no existing records of required type

Created: 28/Feb/11 03:51 PM   Updated: 01/Apr/11 03:26 PM   Resolved: 28/Feb/11 03:56 PM
Component/s: Value Generation
Affects Version/s: 2.2.2, 2.2.3, 3.0.0.m1, 3.0.0.m2
Fix Version/s: 3.0.0.m3

 Description  « Hide
If it finds the column-name of the id field passed in then it ignores the initial-value, which is wrong. Should use initial-value if provided, otherwise get the next available, otherwise start at 0

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/Feb/11 03:56 PM
SVN trunk fixes this, using initial-value if specified and >= 0, otherwise tries to get max of the column, otherwise uses 0