ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Magne Bjornerud" <PMBjorne...@interlect.co.jp>
Subject Persistance
Date Thu, 12 Oct 2006 06:42:41 GMT
Got one more question today.

I am loading data from a file. Data will be inserted or updated in the
DB according to whether or not it exists from before.

Keeping track of which objects that comes from the DB (and needs an
update()), and which have been new'ed (and needs an Insert) seems like a
thing that iBatis users must be doing all the time.

Can anyone recommend a pattern for doing this? I can keep of three ways
of doing this, with increasing levels of abstractness, but don't know
which one to choose. Links or keywords to let me dig up more details on
the web also greatly appreciated :)

-- 
Per Magne Bjornerud

Mime
View raw message