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)

Key: NUCCORE-1132
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Kaarel Kann
Votes: 0
Watchers: 0

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

JDO 3.1 sequence allocation size java API does not work

Created: 18/Feb/14 02:02 PM   Updated: 01/Mar/14 07:39 PM   Resolved: 01/Mar/14 07:38 PM
Component/s: MetaData
Affects Version/s: 3.2.12
Fix Version/s: 4.0.0.m1

File Attachments: 1. Java Source File (2 kB)

Environment: Any

Severity: Development

 Description  « Hide
When sequence is defined using MetaData java API then allocation size configuration is ignored.



JDOMetadata md = rdbmsFactory.newMetadata();
md.newPackageMetadata("test").newSequenceMetadata("userseq", SequenceStrategy.NONCONTIGUOUS).setDatastoreSequence("users_seq").setAllocationSize(10);

PersistenceManager pm = rdbmsFactory.getPersistenceManager();

Sequence seq = pm.getSequence("test.userseq");

seq has default allocation size as defined in datastore implementation

Sort Order: Ascending order - Click to sort in descending order
Kaarel Kann added a comment - 18/Feb/14 02:24 PM

Andy Jefferson added a comment - 01/Mar/14 07:38 PM
That test works in 4.0.0.m1