Fluent NHibernate Wiki
Advertisement

The purpose of this page is to provide a complete list of all of the elements defined by the NHibernate mapping schema. Each element is displayed in a table that enumerates available elements and attributes, with several columns denoting the level of support for each element or attribute in FNH.

Element: any

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
meta Element Ref #Element: meta Postponed Postponed Postponed Postponed
meta-value Element Ref #Element: meta-value Yes Yes Yes Yes
column Element Ref #Element: column Yes Yes Yes Yes
column Attribute string N/A N/A N/A N/A
id-type Attribute string Yes Yes Yes Yes
meta-type Attribute string Yes N/A Yes Yes
name Attribute string Yes N/A Yes Yes
access Attribute string Yes Yes Yes Yes
insert Attribute boolean true Yes Yes Yes Yes
update Attribute boolean true Yes Yes Yes Yes
cascade Attribute string Yes Yes Yes Yes
index Attribute string commit: 36163c commit: 36163c commit: 36163c commit: 36163c
optimistic-lock Attribute boolean true Yes Yes Yes Yes
lazy Attribute boolean false Yes Yes Yes Yes
node Attribute string Postponed Postponed Postponed Postponed

Element: array

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
meta Element Ref #Element: meta Postponed Postponed Postponed Postponed
subselect Element Ref #Element: subselect ? ? ? ?
cache Element Ref #Element: cache ? ? ? ?
synchronize Element Ref #Element: synchronize ? ? ? ?
comment Element Ref #Element: comment ? ? ? ?
key Element Ref #Element: key ? ? ? ?
index Element Ref #Element: index ? ? ? ?
list-index Element Ref #Element: list-index ? ? ? ?
element Element Ref #Element: element ? ? ? ?
one-to-many Element Ref #Element: one-to-many ? ? ? ?
many-to-many Element Ref #Element: many-to-many ? ? ? ?
composite-element Element Ref #Element: composite-element ? ? ? ?
many-to-any Element Ref #Element: many-to-any ? ? ? ?
loader Element Ref #Element: loader ? ? ? ?
sql-insert Element Ref #Element: sql-insert ? ? ? ?
sql-update Element Ref #Element: sql-update ? ? ? ?
sql-delete Element Ref #Element: sql-delete ? ? ? ?
sql-delete-all Element Ref #Element: sql-delete-all ? ? ? ?
name Attribute string ? ? ? ?
access Attribute string ? ? ? ?
table Attribute string ? ? ? ?
schema Attribute string ? ? ? ?
catalog Attribute string ? ? ? ?
subselect Attribute string ? ? ? ?
inverse Attribute boolean false ? ? ? ?
mutable Attribute boolean true ? ? ? ?
element-class Attribute string ? ? ? ?
cascade Attribute string ? ? ? ?
where Attribute string ? ? ? ?
batch-size Attribute int ? ? ? ?
outer-join Attribute #Simple Type: outerJoinStrategy ? ? ? ?
fetch Attribute #Simple Type: collectionFetchMode ? ? ? ?
persister Attribute string ? ? ? ?
collection-type Attribute string ? ? ? ?
check Attribute string ? ? ? ?
optimistic-lock Attribute boolean true ? ? ? ?
node Attribute string Postponed Postponed Postponed Postponed
embed-xml Attribute boolean true ? ? ? ?

Element: bag

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
meta Element Ref #Element: meta Postponed Postponed Postponed Postponed
subselect Element Ref #Element: subselect ? ? ? ?
cache Element Ref #Element: cache ? ? ? ?
synchronize Element Ref #Element: synchronize ? ? ? ?
comment Element Ref #Element: comment ? ? ? ?
key Element Ref #Element: key ? ? ? ?
index Element Ref #Element: index ? ? ? ?
list-index Element Ref #Element: list-index ? ? ? ?
element Element Ref #Element: element ? ? ? ?
one-to-many Element Ref #Element: one-to-many ? ? ? ?
many-to-many Element Ref #Element: many-to-many ? ? ? ?
composite-element Element Ref #Element: composite-element ? ? ? ?
many-to-any Element Ref #Element: many-to-any ? ? ? ?
loader Element Ref #Element: loader ? ? ? ?
sql-insert Element Ref #Element: sql-insert ? ? ? ?
sql-update Element Ref #Element: sql-update ? ? ? ?
sql-delete Element Ref #Element: sql-delete ? ? ? ?
sql-delete-all Element Ref #Element: sql-delete-all ? ? ? ?
filter Element Ref #Element: filter ? ? ? ?
baseCollection Attributes Attribute Group #Attribute Group: baseCollectionAttributes ? ? ? ?

Element: cache

Element: class

Element: collection-id

Element: column

Element: comment

Element: component

Element: composite-element

Element: composite-id

Element: composite-index

Element: composite-map-key

Element: create

Element: database-object

Element: definition

Element: dialect-scope

Element: discriminator

Element: drop

Element: dynamic-component

Element: element

Element: filter

Element: filter-def

Element: filter-param

Element: formula

Element: generator

Element: hibernate-mapping

Element: id

Element: idbag

Element: import

Element: index

Element: index-many-to-any

Element: index-many-to-many

Element: join

Element: joined-subclass

Element: key

Element: key-many-to-one

Element: key-property

Element: list

Element: list-index

Element: load-collection

Element: loader

Element: many-to-any

Element: many-to-many

Element: many-to-one

Element: map

Element: map-key

Element: map-key-many-to-many

Element: meta

Element: meta-value

Element: natural-id

Element: nested-composite-element

Element: one-to-many

Element: param

Element: parent

Element: primitive-array

Element: properties

Element: property

Element: query

Element: query-param

Element: resultset

Element: return

Element: return-column

Element: return-discriminator

Element: return-join

Element: return-property

Element: return-scalar

Element: set

Element: sql-delete

Element: sql-delete-all

Element: sql-insert

Element: sql-query

Element: sql-update

Element: subclass

Element: subselect

Element: synchronize

Element: timestamp

Element: tuplizer

Element: type

Element: typedef

Element: union-subclass

Element: version

Simple Type: outerJoinStrategy

Simple Type: collectionFetchMode

Simple Type: collectionLazy

Attribute Group: baseCollectionAttributes

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
name Attribute string ? ? ? ?
access Attribute string ? ? ? ?
table Attribute string ? ? ? ?
schema Attribute string ? ? ? ?
catalog Attribute string ? ? ? ?
subselect Attribute string ? ? ? ?
lazy Attribute #Simple Type: collectionLazy ? ? ? ?
inverse Attribute boolean false ? ? ? ?
mutable Attribute boolean true ? ? ? ?
cascade Attribute string ? ? ? ?
order-by Attribute string ? ? ? ?
where Attribute string ? ? ? ?
batch-size Attribute int ? ? ? ?
outer-join Attribute #Simple Type: outerJoinStrategy ? ? ? ?
fetch Attribute #Simple Type: collectionFetchMode ? ? ? ?
persister Attribute string ? ? ? ?
collection-type Attribute string ? ? ? ?
check Attribute string ? ? ? ?
optimistic-lock Attribute boolean true ? ? ? ?
node Attribute string Postponed Postponed Postponed Postponed
embed-xml Attribute boolean true ? ? ? ?
generic Attribute boolean ? ? ? ?

Simple Type: optimisticLockMode

Simple Type: polymorphismType

Simple Type: unsavedValueType

Simple Type: ondelete

Simple Type: restrictedbool

Simple Type: lockMode

Simple Type: notFoundMode

Simple Type: fetchMode

Simple Type: bool

Simple Type: propertyGeneration

Simple Type: flushMode

Simple Type: cacheMode

Simple Type: customSQLCheck

Simple Type: customSQL

Simple Type: versionGeneration

Advertisement