This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Description copied from interface: HibernateOperations
Execute the specified action assuming that the result object is a List.

This is a convenience method for executing Hibernate find calls or queries within an action.

Specified by:
executeFind in interface HibernateOperations

Parameters:
action - calback object that specifies the Hibernate action
Returns:a List result returned by the action, or null
Throws:
DataAccessException - in case of Hibernate errors

when does executeFind return null? Im just confused because when I try to use this method with some query which I know wont return anything, the method returns an emply list. Am I wrong to expect that the method should return null?