-->
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.  [ 1 post ] 
Author Message
 Post subject: Possibly optimistic concurrency control problem
PostPosted: Sun Jan 04, 2009 6:47 pm 
Newbie

Joined: Sun Jan 04, 2009 6:41 pm
Posts: 1
Hi everybody, in our freshly build Java B2B-Shop-Customer-System (build from scratch, based on Hibernate. Spring etc.) we have
four adresses in the MS-SQL-DB (MS-SQL-2000): contact_address,
company_address, delivery_address, billing_address.

In the end-customer's registration process the following happens (in case the customer says that the delivery_address + billing address is being
assembled out of the contact/-delivery_addresses and doesn't have to fill it seperately):

a) contact_address is stored first -> ok
b) company_address is stored first -> ok
c) delivery_adress is stored from the data of the company_adress
d) billing_adress is stored from the data of the company_address

My Java-developer is trying to tell me, that this is not possible. He
mentioned the following: in part c) Hibernate recognizes, that the
object which is the most recent is older than the stored version in
the DB. The same happens when it comes to part d).
And he mentions that this is a Optimistic Concurrency Control problem.
(see: http://en.wikipedia.org/wiki/Optimistic ... cy_control )
I told him that with ColdFusion, PHP and other scripting languages
this shouldn't be a problem, since you can store the data in server or
clientside variables/parameters. He replied, that this isn't possible with
Hibernate. This irritates me, since it would be a major problem, if
we have to change the business logic of this shop-feature from
ground up.

Any ideas what we could do ?


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

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.