ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akins, Greg" <gak...@amervideo.com>
Subject RE: getting database copy rather than existing object, or cached copy
Date Wed, 13 Apr 2005 14:16:02 GMT
I'm not using a cache... 

I'll try to write some more granular tests to see what's going on.
Thanks!

-----Original Message-----
From: Brandon Goodin [mailto:brandon.goodin@gmail.com] 
Sent: Wednesday, April 13, 2005 10:11 AM
To: ibatis-user-java@incubator.apache.org
Subject: Re: getting database copy rather than existing object, or
cached copy


iBatis will retrieve a fresh object from the database each time. Are you
using a cache on your mapped statement for getObjectById(...)?

Brandon

On 4/13/05, Akins, Greg <gakins@amervideo.com> wrote:
>  
> I'm trying to compare what's in the database against what an object 
> currently is...
>   
> So I thought this would work
>   
> Status oldStatus =
> ((HoldAvp)adao.getObjectById(holdAvp.getId())).getStatus() ; Status 
> newStatus = holdAvp.getStatus() ;
>   
> However, oldStatus has the updated value, even though I can see in the

> database it hasn't been updated yet.
>   
> Can I use Ibatis to get the current database value?  Or do I have to 
> use JDBC?  Or am I thinking about this the wrong way?
>   
>  
> Greg Akins
> Software Engineer 
> Sony Electronics, STP Systems 
> 724.696.7322 (Sony) 
> 724.696.6147 (AV) 
> 724.454.7790 (Cell) 
> 412.590.3973 (Pager) 
>

Mime
View raw message