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

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
usage Attribute string ? ? ? ?
region Attribute string ? ? ? ?
include Attribute string all ? ? ? ?

Element: class

Name XmlType Type Default Value Model Fluent Interface XmlWriter Inspector
meta Element Ref #Element: meta Postponed Postponed Postponed Postponed
subselect Element Ref #Element: subselect Postponed Postponed Postponed Postponed
cache Element Ref #Element: cache Yes Yes Yes ?
synchronize Element Ref #Element: synchronize Postponed Postponed Postponed Postponed
comment Element Ref #Element: comment Postponed Postponed Postponed Postponed
tuplizer Element Ref #Element: tuplizer Postponed Postponed Postponed Postponed
id Element Ref #Element: id Yes Yes Yes ?
composite-id Element Ref #Element: composite-id Yes Yes Yes ?
discriminator Element Ref #Element: discriminator Yes Yes Yes ?
natural-id Element Ref #Element: natural-id Postponed Postponed Postponed Postponed
version Element Ref #Element: version Yes Yes Yes ?
timestamp Element Ref #Element: timestamp Yes - version Yes - version Yes - version ?
property Element Ref #Element: property Yes Yes Yes ?
many-to-one Element Ref #Element: many-to-one Yes Yes Yes ?
one-to-one Element Ref #Element: one-to-one Yes Yes Yes ?
component Element Ref #Element: component Yes Yes Yes ?
dynamic-component Element Ref #Element: dynamic-component Yes Yes Yes ?
properties Element Ref #Element: properties N/A N/A N/A N/A
any Element Ref #Element: any Yes Yes Yes ?
map Element Ref #Element: map Yes Yes Yes ?
set Element Ref #Element: set Yes Yes Yes ?
list Element Ref #Element: list Yes Yes Yes ?
bag Element Ref #Element: bag Yes Yes Yes ?
idbag Element Ref #Element: idbag Postponed Postponed Postponed Postponed
array Element Ref #Element: array Yes Yes Yes ?
primitive-array Element Ref #Element: primitive-array Postponed Postponed Postponed Postponed
join Element Ref #Element: join Yes Yes Yes ?
subclass Element Ref #Element: subclass Yes Yes Yes ?
joined-subclass Element Ref #Element: joined-subclass Yes Yes Yes ?
union-subclass Element Ref #Element: union-subclass Postponed Postponed Postponed Postponed
loader Element Ref #Element: loader Postponed Postponed Postponed Postponed
sql-insert Element Ref #Element: sql-insert Postponed Postponed Postponed Postponed
sql-update Element Ref #Element: sql-update Postponed Postponed Postponed Postponed
sql-delete Element Ref #Element: sql-delete Postponed Postponed Postponed Postponed
filter Element Ref #Element: filter Postponed Postponed Postponed Postponed
resultset Element Ref #Element: resultset Postponed Postponed Postponed Postponed
query Element Ref #Element: query Postponed Postponed Postponed Postponed
sql-query Element Ref #Element: sql-query Postponed Postponed Postponed Postponed
entity-name Attribute string ? ? ? ?
name Attribute string Yes N/A Yes ?
proxy Attribute string Yes Yes Yes ?
lazy Attribute string Yes Yes Yes ?
schema-action Attribute string ? ? ? ?
table Attribute string Yes Yes Yes ?
schema Attribute string Yes Yes Yes ?
catalog Attribute string ? ? ? ?
subselect Attribute string ? ? ? ?
discriminator-value Attribute string Yes ? Yes ?
mutable Attribute bool true Yes Yes - ReadOnly Yes ?
abstract Attribute bool Yes ? Yes ?
polymorphism Attribute #Simple Type: polymorphismType implicit Yes Yes Yes ?
where Attribute string Yes ? Yes ?
persister Attribute string Yes Yes Yes ?
dynamic-update Attribute bool false Yes Yes Yes ?
dynamic-insert Attribute bool false Yes Yes Yes ?
batch-size Attribute int Yes Yes Yes ?
select-before-update Attribute bool false Yes Yes Yes ?
optimistic-lock Attribute #Simple Type: optimisticLockMode version Yes Yes Yes ?
check Attribute string Yes Yes - CheckConstraint Yes ?
rowid Attribute string ? ? ? ?
node Attribute string ? ? ? ?


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