-->
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: Does
PostPosted: Thu Oct 28, 2004 11:43 am 
Newbie

Joined: Thu Oct 28, 2004 11:39 am
Posts: 1
[Hi Gavin,

We are using Hibernate for our Web Based Application, we have come up with few issues:
The application has a multi-tier architecture with struts for the presentation layer and hibernate as the persistence layer. The application also involves stateless session beans in the business tier. The database used is Oracle 9i and the application server is WAS 5.1.

Issue 1. We are using the


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 11:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is not doable.

Makes sense, how can Hibernate find out the value of the version column after an update?

You can of course map an ordinary property with insert=false update=false, but you can't have it used for optimistic locking.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 3:16 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
@vinayjain
i'm not Gavin ;) but for your 'Issue 2' ... take a look at the 'UserType'-Interface ... you can do 'nearly everything' with those CustomUserTypes ...

gtx
curio


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.