Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Get(Type, Object) Method

Return the persistent instance of the given entity type with the given identifier, or

null
if not found.

[Visual Basic]
Public NotOverridable Overloads Sub Get( _
   ByVal entityType As Type, _
   ByVal id As Object _
) _
    Implements IHibernateOperations.Get
[C#]
public object Get(
   Type entityType,
   object id
);

Parameters

entityType
The type.
id
An identifier of the persistent instance.

Return Value

The persistent instance, or

null
if not found

Implements

IHibernateOperations.Get

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace | HibernateTemplate.Get Overload List