-->
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.  [ 4 posts ] 
Author Message
 Post subject: session.getCurrentLockMode(obj) and session.refresh()
PostPosted: Fri Oct 10, 2003 1:02 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
Hello,

I've made some tests with session.getCurrentLockMode(obj) and session.refresh(obj, LockMode.UPDGRADE). And I noticed this :

session.getCurrentLockMode(obj); => READ
session.refresh(obj, LockMode.UPDGRADE);
session.getCurrentLockMode(obj); => READ

Is this a normal behaviour ?

Thanks in advance

Philippe


Top
 Profile  
 
 Post subject: Some prcecisions
PostPosted: Fri Oct 10, 2003 1:12 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
Just some precisions to show that the refresh() works :

DEBUG Thread-8 (MouvementManagerServiceImpl.java:71) - ######################### UPGRADE
DEBUG Thread-8 (MouvementManagerServiceImpl.java:72) - ######################### READ
Hibernate: select ik, code, noSocCom, noCliLiv from SV_Commande where ik=? for update
DEBUG Thread-8 (MouvementManagerServiceImpl.java:79) - ######################### READ

Philippe


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 19, 2003 12:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This might be a bug. What version of Hibernate is it?

Would you please submit an issue to JIRA? TIA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 6:22 am 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
gavin wrote:
This might be a bug. What version of Hibernate is it?

Would you please submit an issue to JIRA? TIA


Hello,

We use "version 2.0.3, 27 August 2003". Ok, i post this issue to JIRA.

Thanks

Philippe


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.