You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by stefcl <st...@gmail.com> on 2009/12/09 17:45:30 UTC
Should I use Ibatis 2 or 3 for a new project?
Hello,
I d'like to use iBatis for refactoring an old J2EE project that uses a mix
of pure jdbc and hibernate+DTO for its database access layer. I feel that
iBatis is the way to go because I just want to simplify JDBC, I don't want
magic proxies that blow up anywhere in my application because they contain
references to closed database connections or anything like this...
My problem is that I'm unsure which version I should use, stable 2.xx or
beta 3. Their respective API seem rather different, I like the session
approach of version 3, especially because it would allow for example to pass
Session objects to methods B and C to make them part of a single database
transaction started by A, it seems cleaner to me than having them accessing
the same static SqlMapClient object, I also prefer unchecked exceptions.
Of course v3 is beta, documentation might not be perfectly up to date,
there's no user javadoc (or I could not find one) but if we're close to a
release (are we?) I would prefer to start working directly with the new
Ibatis API to avoid migrating code later.
Do you think v3 is stable enough? Can we expect a RC or stable release soon
(1-3 months)? Any advice?
--
View this message in context: http://old.nabble.com/Should-I-use-Ibatis-2-or-3-for-a-new-project--tp26713439p26713439.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org
Re: Should I use Ibatis 2 or 3 for a new project?
Posted by stefcl <st...@gmail.com>.
Thanks both of you for your answer.
I'm going to start directly with v3, it seems a reasonable choice,
especially if most of the community effort is targeting that version...
Thanks again
--
View this message in context: http://old.nabble.com/Should-I-use-Ibatis-2-or-3-for-a-new-project--tp26713439p26724344.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org
Re: Should I use Ibatis 2 or 3 for a new project?
Posted by Martin Ellis <el...@gmail.com>.
On Wed, Dec 9, 2009 at 4:45 PM, stefcl <st...@gmail.com> wrote:
> Of course v3 is beta, documentation might not be perfectly up to date,
> there's no user javadoc (or I could not find one) but if we're close to a
> release (are we?) I would prefer to start working directly with the new
> Ibatis API to avoid migrating code later.
FWIW, I was in the same position as you a few months ago - green field
development; didn't want to develop against an API that would soon
become out-dated; wanted to be using a version that people would be
enthusiastic about supporting.
I chose to go with the alphas, and yes - there were a few bugs, but
patches for actual bugs were accepted promptly. I haven't been
affected by any changes for a couple of beta iterations now (and I
have tests to verify), so things seem to be fairly stable.
Also, I found the iBATIS user guide is up-to-date. I think found one
thing that appeared to be out-of-date, and it was marked as such (no
idea if it's fixed now). For Javadoc, I just checked out the source,
and ran:
mvn javadoc:javadoc
... and dumped a copy on our local web server.
> Do you think v3 is stable enough? Can we expect a RC or stable release soon
> (1-3 months)? Any advice?
Up to you. If I were to do it again, I'd choose v3.
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org
Re: Should I use Ibatis 2 or 3 for a new project?
Posted by Nathan Maves <na...@gmail.com>.
As a member of the team here I fully support version 3.0. I am working on a
new project and chose to use 3.0. I also believe that Clinton is also using
for a new production product.
As we have said before on the list, it is up to the community to decide when
3.0 goes GA. As for a RC version I almost think that our beta has those
qualities. It is more likely to see it go from beta straight to GA.
Nathan
On Wed, Dec 9, 2009 at 9:45 AM, stefcl <st...@gmail.com> wrote:
>
> Hello,
>
> I d'like to use iBatis for refactoring an old J2EE project that uses a mix
> of pure jdbc and hibernate+DTO for its database access layer. I feel that
> iBatis is the way to go because I just want to simplify JDBC, I don't want
> magic proxies that blow up anywhere in my application because they contain
> references to closed database connections or anything like this...
>
> My problem is that I'm unsure which version I should use, stable 2.xx or
> beta 3. Their respective API seem rather different, I like the session
> approach of version 3, especially because it would allow for example to
> pass
> Session objects to methods B and C to make them part of a single database
> transaction started by A, it seems cleaner to me than having them accessing
> the same static SqlMapClient object, I also prefer unchecked exceptions.
>
> Of course v3 is beta, documentation might not be perfectly up to date,
> there's no user javadoc (or I could not find one) but if we're close to a
> release (are we?) I would prefer to start working directly with the new
> Ibatis API to avoid migrating code later.
>
> Do you think v3 is stable enough? Can we expect a RC or stable release soon
> (1-3 months)? Any advice?
> --
> View this message in context:
> http://old.nabble.com/Should-I-use-Ibatis-2-or-3-for-a-new-project--tp26713439p26713439.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>