[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5386) The ability to provide Hibernate with a custom implementation of the auto-increment function for new entity PK generation.

Steve Ebersole (JIRA) noreply at atlassian.com
Thu Jul 15 16:01:13 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37806#action_37806 ] 

Steve Ebersole commented on HHH-5386:
-------------------------------------

First, I am not exactly sure the correlation between the 2 points below.  It seems you are talking about 2 different things.  At any rate Hibernate already does provide the capability to plug in a "custom implementation of the auto-increment function" if I understand what you mean by "auto-increment function".  See org.hibernate.id.IdentifierGenerator.

In the second case it seems as if you are asking for partial generation of composite PKs which, again, Hibernate already allows.

So could you please clarify this some more?

> The ability to provide Hibernate with a custom implementation of the auto-increment function for new entity PK generation.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-5386
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5386
>             Project: Hibernate Core
>          Issue Type: New Feature
>            Reporter: Bill DeCoste
>
>  
> -          Use case:  We'd like to be able to create custom unique identifiers (64-bit object IDs that take advantage of our domain space to provide compact UUIDs, for example).  We understand the PKClass functionality which allows us to get part of the way there, but we'd like to be able to combine this functionality with Hibernate's auto-increment functionality.
>  
> -          Something that's been contemplated here is an easy way to specify automatic hierarchical primary keys.  In other words if I have two entities, A and B, and B is ALWAYS an embedded entity of A, it'd be great to be able to tell Hibernate to structure the skill identifier as a compound PK composed of A ID and B ID.

-- 
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