[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2879) add an actual api for loading an entity by natural candidate key (mapped natural-id)

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Jan 11 21:29:12 EST 2012


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

Steve Ebersole commented on HHH-2879:
-------------------------------------

Be sure to see HHH-2896 in terms of discussion of this feature.  However, the initial work, done as a pull request, referenced this issue instead.  Really its my fault for having 2 distinct issues here.

> add an actual api for loading an entity by natural candidate key (mapped natural-id)
> ------------------------------------------------------------------------------------
>
>                 Key: HHH-2879
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2879
>             Project: Hibernate ORM
>          Issue Type: Improvement
>          Components: core
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>             Fix For: 4.1.0
>
>
> Currently, natural-id "loading' is only available through some incomplete criteria query hackery.  Would like to expose a proper API for performing natural-id loading. 
> Eventually would be great to have this coordinated with the effort to cleanup the Session API and so have a unified way to load entities.  (NOTE : the contract name I am using for the time being is EntityLoadAccess, although i am not tied to this). - see HHH-2896
> Something like:
> Session.getNaturalKeyEntityLoadAccess( MyEntity.class ).get( key )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list