Defining NHibernate Persistence Options

The following options are available:

Option

Description

Schema

Specifies the name of the schema.

NHibernate Tag: schema

Catalog

Specifies the name of the catalog.

NHibernate Tag: catalog

Where clause

Specifies an arbitrary SQL WHERE condition to be used when retrieving objects of this class.

NHibernate Tag: where

Check

Specifies a SQL expression used to generate a multi-row check constraint for automatic schema generation.

NHibernate Tag: check

Fetch type

Specifies outer-join or sequential select fetching.

NHibernate Tag: fetch

Persister class

Specifies a custom persistence class.

NHibernate Tag: persister

Subselect

Specifies an immutable and read-only entity to a database subselect.

NHibernate Tag: subselect

Index column

Specifies the column name if users use list or array collection type.

NHibernate Tag: index

Insert

Specifies that the mapped columns should be included in any SQL INSERT statements.

NHibernate Tag: insert

Update

Specifies that the mapped columns should be included in any SQL UPDATE statements.

NHibernate Tag: update

Lazy

Specifies that this property should be fetched lazily when the instance variable is first accessed.

NHibernate Tag: lazy

Optimistic lock

Specifies that a version increment should occur when this property is dirty.

NHibernate Tag: optimistic-lock

Outer join

Specifies to use an outer-join.

NHibernate Tag: outer-join