| Summary: | Incorrect START WITH value creating native sequence | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Doug Clarke <douglas.clarke> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P4 | CC: | joels, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Doug Clarke
OK. I see my issue (30 seconds later). We add the start-with value to the initial-value and subtract 1 so that the first time we ask for a value we can start issuing sequence numbers on the user provided initial-value. The generated SQL is still confusing me though I'm running right up against this using EclipseLink. Is there a work around? Some set of values for allocation-size and initial-value that works? I have found that the SQL that generates the sequences sets the initial value to be the starts-with + increment - 1. This is done so that the first time a sequence is retrieved it can start assigning values starting with the initial-value you have specified. Although I found it confusing I believe it creates and uses the sequence so that your JPA configured values can be honoured. closing as RESOLVED - WORKSFORME The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |