Hibernate version:3.1
I'm currently using the following code to load a single DataModification object based on its id:
Code:
public DataModification loadById(Integer modificationId) throws DataAccessException {
return (DataModification) getHibernateTemplate().load(DataModification.class, modificationId);
}
If I have a collection of Ids I loop through it and call the method above for each Id that I have. Is there a way to send a collection of Ids to Hibernate and have a collection of objects returned? Or do I have to keep making multiple calls?
Thanks for your help!