-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Optimistic locking through Timestamp field ?
PostPosted: Fri Dec 10, 2004 11:06 am 
Newbie

Joined: Tue Dec 07, 2004 7:51 am
Posts: 7
For doing the concurrency control in mapping xml through a timestamp field and this timestamp field in my case is a member of another object, which is encapsulated in the main object.
I am specifying this versioning in the following way:

<version name="lastUpdateEventTS"
column="lastUpdateEventTS"
access="RptCommon"/>

<property name="filterName"/>
<property name="loginID"/>
<property name="queryString"/>
<property name="expressionID"/>
<component name="RptCommon" class="RptCommon">
<property name="lastUpdateActionCode"/>
<property name="lastUpdateEventTS"/>
<property name="lastUpdateUserID"/>
<property name="dateActive"/>
<property name="dateInactive"/>
</component>


RptCommon is encapsulated within the main object and the timestamp field belongs to RptCommon class only.

On deploying, I get the error saying "net.sf.hibernate.MappingException: could not instantiate PropertyAccessor class".

Has anyone any clue on that ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 12:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Learn how PropertyAccessors work and what the access="xxx" setting really does then develop a custom PropertyAccessor accessing the timestamp value.


Top
 Profile  
 
 Post subject: Re
PostPosted: Sat Dec 11, 2004 9:43 am 
Newbie

Joined: Tue Dec 07, 2004 7:51 am
Posts: 7
Thanks for the reply.
Could you please provide me some useful link, wherein I will get the study material on hibarnate topics like this PropertyAccessors for example.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.