Thread:
 It's not a conflict with DAO pattern 
 floe   10 Aug 2005, 01:15 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: floe (10 Aug 2005, 01:15) Replies: 0, Views: 35573
Subject: It's not a conflict with DAO pattern
We're using Root Persistent Class pattern and DAO pattern 
together,while our root persistent class have only define some common 
attribute such as id, version, createTime, removed, etc, without 
persistent method.

"why load() instead of refresh()" -- please check hibernate 
documentation for detail. In most usecases, refresh() should be avoid, 
load() is better. load() will load data from db and refresh the 
persistent object with same id in session, too.
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]