name = property name on entity
access = strategy for accessing the property
column = column name in database
type = data type of property
unsaved-value = value of version for a transient object

all of these are the common to most/all of the mapping elements within
an entity
I'm not sure about "generated" though.

working in a web environment i find either private or readonly access
to the version is all that's needed.  I haven't found a need for
manually setting the version in code.

On Dec 10, 7:39 am, NHibernate1 <[email protected]> wrote:
> Hi All,
>
> I am new to NHibernate Versioning can anyone provide nice links and
> examples regarding using NHibernate Versioining.
> I would like to know the full details about the below element in Hbm
> mappings.
>
> <xs:element name="version">
>                 <xs:annotation>
>                         <xs:documentation>Versioned data requires a column 
> holding a
> version number. This is exposed to the application through a property
> of the .NET class</xs:documentation>
>                 </xs:annotation>
>                 <xs:complexType>
>                         <xs:attribute name="name" type="xs:string" 
> use="required"/>
>                         <xs:attribute name="access" type="xs:string"/>
>                         <xs:attribute name="column" type="xs:string"/>
>                         <xs:attribute name="type" type="xs:string" 
> default="Int32"/>
>                         <xs:attribute name="unsaved-value" type="xs:string">
>                                 <xs:annotation>
>                                         
> <xs:documentation>undefined|any|none|null|0|-1|... </
> xs:documentation>
>                                 </xs:annotation>
>                         </xs:attribute>
>                         <xs:attribute name="generated" type="
>                         Generation" use="optional" default="never"/>
>                 </xs:complexType>
>         </xs:element>
>
> InDepth details would be appreciated.
>
> Thanks

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to