| Summary: | @SequenceGenerator initialValue on eclipselink.ddl-generation is ignored | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Yohan Yudanara <yohan_y> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | eclipselink.orm-inbox, tom.ware | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | submitted_patch | ||||||
| Attachments: |
|
||||||
|
Description
Yohan Yudanara
Created attachment 166779 [details]
Suggested patch (without test).
Note that initialValue indicates the first sequence value that the app. will use - not the start value of the sequence in the db.
If initialValue = 10000 and allocationSize = 50 the generated sequence will look like:
CREATE SEQUENCE seq_role
INCREMENT 50
START 10049
The first sequence value to be used by the app is 10049 - 50 + 1 = 10000.
Setting target and priority. See the following page for details of what these values mean. http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines suggested patch is already included in 2.1 - my tests indicate this functionality works with the patch The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |