[hibernate-issues] [Hibernate-JIRA] Updated: (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 Oct 17 22:42:38 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole updated HHH-2879:
--------------------------------

    Description: 
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 )

  was:
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.  In addition, would like this to be consolidated with the effort to cleanup the Session API and so have a unified way to load entities:

Session.getLoader( MyEntity.class ).get( id )
Session.getNaturalIdLoader( MyEntity.class ).get( naturalId )

*DISCLAIMER : do not like the term 'loader' here because of ambiguity*

        Summary: add an actual api for loading an entity by natural candidate key (mapped natural-id)  (was: consolidate approach for id and natural-id loading)

> 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: Hibernate3
>          Issue Type: Improvement
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>             Fix For: 3.3
>
>
> 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.
-
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