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
Operations

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 SimpleTest.java (2 kB)

Environment: Any

Severity: Development


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

Testcase: https://github.com/kaarelk/test-jdo/tree/sequence_allocation_size

Example:

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

PersistenceManager pm = rdbmsFactory.getPersistenceManager();
pm.currentTransaction().begin();

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
testcase

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