Hi Stef,
thanks for your interest on our small effort :)
See my comments below:

> Sounds extremely interesting...
> Does it also have the ability to rollback transactions and wrap Ibatis
> exceptions into some generic DataAccessException class?

Sure, as described in the small table in
http://ibaguice.googlecode.com/svn/site/1.0-SNAPSHOT/dao.html, you can
do it simply by rewriting your code as:

@com.ibaguice.extensions.dao.Transactional(rethrowExceptionsAs =
DataAccessException.class)
public void doFooBar() {
    FooMapper fooMapper =
this.getCurrentSqlSession().getMapper(FooMapper.class);
    fooMapper.doFoo();

    BarMapper barMapper =
this.getCurrentSqlSession().getMapper(BarMapper.class);
    barMapper.doBar();
}

The constraint is you've to implement the DataAccessException with the
<Throwable> argument, so you take also the cause.

> It would be great for people like me who (refuse / can't afford) to use
> Spring because of all its requirements and design constraints.

That's why we started working in that way, we thought the same!!! And
that's why, since we're integrating 3rd parts libraries, we splitted
the project in multi modules to avoid users have to take in their
applications the *huge* framework, but just what they need!!!

Don't hesitate writing me if you need to know more, I'm very pleased
to provide you all the informations you need.
Thanks again, have a nice holiday season,
Simone

> --
> View this message in context: 
> http://old.nabble.com/Enjoy-the-power-of-iBatis3-%2B-google-guice2-tp26876442p26941769.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>



-- 
http://www.google.com/profiles/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to