[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2657) Bulk select using primary key or natural id

charbel (JIRA) noreply at atlassian.com
Thu Jun 7 07:10:04 EDT 2007


Bulk select using primary key or natural id
-------------------------------------------

                 Key: HHH-2657
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2657
             Project: Hibernate3
          Issue Type: Improvement
            Reporter: charbel


I think that the following methods are really useful once we use hibernate with huge datas in the database:

Object[] get(Class,Object[] id):
----------------------------------------
return objects giving their primary key. 
First check in cache if it exists, if not either use a select in () either create a temporary table if too many ids.


Object[] getUsingNaturalId(Class,Object[] id):
----------------------------------------
return objects giving their natural id. 
the same thing than before.

Be careful on the fact that the primary key and the naturalid can be composite objects.




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