Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.SaveOrUpdate Method

Save or update the given persistent instance, according to its id (matching the configured "unsaved-value"?).

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

Parameters

entity
Tthe persistent instance to save or update (to be associated with the Hibernate Session).

Implements

ICommonHibernateOperations.SaveOrUpdate

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace