Thread:
 refresh method implmementation 
 drj   07 Nov 2003, 10:57 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: drj (07 Nov 2003, 10:57) Replies: 0, Views: 39053
Subject: refresh method implmementation
Why

public void refresh() throws HibernateException, SQLException {
    HibernateSession.currentSession().load(this, _id);
}

instead of 

public void refresh() throws HibernateException, SQLException {
    HibernateSession.currentSession().refresh(this);
}

?
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]