Don't !!!!!!, it is a breach in the versioning process

My advise extract the locking behaviour from your entity !

On 4 aug, 08:51, Peter Derwa <[email protected]> wrote:
> Hey guys
>
> I'm using the Versioning of NHibernate to keep track of the
> versioning.
> Recently we've added the possibility to lock records when editing
> them, and i would like to update my entity without going up a version
> when doing that.
>
> Does anyone know how to do that?
>
>     <id name="Id" access="field.camelcase" unsaved-value="-1">
>       <column name="CondID" sql-type="smallint" not-null="true"
> unique="true"/>
>       <generator class="native"></generator>
>     </id>
>     <version column="Version" name="Version" type="short"
> generated="never" unsaved-value="0" access="field.camelcase" />
>
>     <property name="Language">
>       <column name="LangCode" not-null="true" sql-type="tinyint"/>
>     </property>
>
>     <property name="ConditionContent" type="string" column="Condition"
> not-null="true" />
>     <property name="Comment" type="string" length="255" />
>     <property name="CreatedBy" type="string" length="25" />
>     <property name="CreatedOn" type="DateTime" />
>     <property name="ModifiedBy" type="string" length="25" />
>     <property name="ModifiedOn" type="DateTime" />
>     <property name="LockedByUser" type="string" length="25" not-
> null="false" />
>     <property name ="LockedSince" type="DateTime" not-null="false" />
--~--~---------~--~----~------------~-------~--~----~
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