Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Save(Object) Method

Persist the given transient instance.

[Visual Basic]
Public NotOverridable Overloads Sub Save( _
   ByVal entity As Object _
) _
    Implements ICommonHibernateOperations.Save
[C#]
public object Save(
   object entity
);

Parameters

entity
The transient instance to persist.

Return Value

The generated identifier.

Implements

ICommonHibernateOperations.Save

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.Save Overload List