Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.FindByNamedQuery(String) Method

Execute a named query for persistent instances. A named query is defined in a Hibernate mapping file.

[Visual Basic]
Public Sub FindByNamedQuery( _
   ByVal queryName As String _
)
[C#]
IList FindByNamedQuery(
   string queryName
);

Parameters

queryName
The name of a Hibernate query in a mapping file

Return Value

A List containing 0 or more persistent instances

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

IHibernateOperations Interface | Spring.Data.NHibernate Namespace | IHibernateOperations.FindByNamedQuery Overload List