[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3346) New id generator - produce fixed-width string representation of short, int, or long

Richard Freedman (JIRA) noreply at atlassian.com
Sat Jun 14 22:15:33 EDT 2008


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

                 Key: HHH-3346
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3346
             Project: Hibernate3
          Issue Type: New Feature
          Components: core
    Affects Versions: 3.3.0.CR1
         Environment: Hibernate 3.x, database agnostic
            Reporter: Richard Freedman
            Priority: Minor
         Attachments: FixedWidthStringIdGenerator.diff

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.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list