Re: Transaction trouble

2005-11-14 Thread Larry Meadors
Why are you doing this? It makes no sense. The purpose of the DAO pattern is to eliminate this kind of thing from your application. Write one method in your DAO to do all of this, and be done with it. Larry On 11/14/05, Corneliu Rudeanu <[EMAIL PROTECTED]> wrote: > > My intention is to mix SQL

Transaction trouble

2005-11-14 Thread Corneliu Rudeanu
My intention is to mix SQL Mapper statements with DAO accesses in the same transaction. My code could look like this: sqlMapClient.startTransaction(); sqlMapClient.update("updateUser", theUser); daoManager.getDao(UserDAO.class).load(theUser); sqlMapClient.commitTransaction(); sqlMapClient.endTran