Because it's incremented when you update a record. Both are 1 in
sample-data.xml. The fact that user is 2 implies you've updated that record.

Matt

On Wed, Jan 14, 2009 at 11:49 AM, Ice-Man <[email protected]>wrote:

>    Ok! (Record) Pessimist Sharing!
>   But, why Record of 'admin' field 'VERSION'=1
> and
>   Record of 'user' field 'VERSION'=2 ??
>
> Ice-Man
>
>
> 2009/1/14 Matt Raible <[email protected]>
>
>> No, it means that if two people edit the same record at the same time that
>> the first one will win. The 2nd user will get an error.
>> Matt
>>
>>  On Jan 14, 2009, at 11:16 AM, Ice-Man wrote:
>>
>>  So always will prevail changes made by the Administrator??!
>>
>> Ice-Man
>>
>>
>> 2009/1/13 Matt Raible <[email protected]>
>>
>>> It's used for optimistic locking with Hibernate.
>>>
>>> Matt
>>>
>>>
>>> On Tue, Jan 13, 2009 at 7:49 AM, Raghu <[email protected]> wrote:
>>>
>>>> Hi, I see version field in app_user table and am wondering why this
>>>> field is required for user?
>>>> Any Idea?
>>>>
>>>> Regards
>>>> Raghu
>>>>
>>>
>>>

Reply via email to