Issue Details (XML | Word | Printable)

Key: HHH-3346
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Richard Freedman
Votes: 1
Watchers: 2
Operations

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

New id generator - produce fixed-width string representation of short, int, or long

Created: 14/Jun/08 09:14 PM   Updated: 15/Jun/08 11:51 AM
Component/s: core
Affects Version/s: 3.3.0.CR1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File FixedWidthStringIdGenerator.diff (6 kB)
2. File FixedWidthStringIdGenerator.diff (6 kB)

Environment: Hibernate 3.x, database agnostic

Requires Release Note: Affirmative


 Description  « Hide
Provide a new id generator that works like IncrementGenerator, but generates fixed-width String representations of short, int, or long values.
For brevity of key, base-36 encode the value via toString(long i, int radix), yielding digits in range '0' - 'z'

Diff is attached.



 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Richard Freedman added a comment - 15/Jun/08 11:51 AM
minor bug fix to original - please ignore the previous patch