-->
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 and Trigger
PostPosted: Mon Jun 13, 2005 8:17 pm 
Newbie

Joined: Thu Mar 17, 2005 8:15 pm
Posts: 19
I am using version count as optimistic locking apparoch with hibernate.
It is working well. Now with the new requirment, there is some external application which updates the Order(table) data.But these applications are not updating version count.
can anybody gives me tips to ensure optimistic lock to work here. I wrote trigger which updates the version count whenever there is an update, but this is resulting simple update itself is failing.I really didnt understand why this trigger approach is not working. am I missing something here?

Regards
Nagesh G


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject: To add more point to the above question.
PostPosted: Mon Jun 13, 2005 10:50 pm 
Newbie

Joined: Thu Mar 17, 2005 8:15 pm
Posts: 19
To add more point on the same question,

I am getting the following exception:

org.hibernate.HibernateException: Duplicate identifier in table for: [com.tollbrothers.archonline.va
lueobjects.archdoc.OrdersDTO#1081]
at org.hibernate.persister.entity.BasicEntityPersister.check(BasicEntityPersister.java:1460)


Regards
Nagesh G


Top
 Profile  
 
 Post subject: Issue is resolved.
PostPosted: Tue Jun 14, 2005 3:49 pm 
Newbie

Joined: Thu Mar 17, 2005 8:15 pm
Posts: 19
Issue is resolved. the Problem is with trigger only.


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.