Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 21804 invoked from network); 28 Oct 2006 20:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2006 20:02:14 -0000 Received: (qmail 37551 invoked by uid 500); 28 Oct 2006 20:02:24 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 37537 invoked by uid 500); 28 Oct 2006 20:02:24 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 37518 invoked by uid 99); 28 Oct 2006 20:02:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 13:02:23 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of urbanejarl@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO nz-out-0102.google.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2006 13:02:11 -0700 Received: by nz-out-0102.google.com with SMTP id q3so896671nzb for ; Sat, 28 Oct 2006 13:01:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QhO/84AyzvWQOR4uLjoWcOxuTsHNASfHFeZhMW801aM6k4xAmnis7tgAoMWiOF7VkN6blHFIeWsT7ySbQUsLBYBGk9c7F/6GbN6sBwid/rKM0JN7dxsf1A7LRye182m/+p1AZOOHuDceEKkfsNCJpzFN1kVZ1eWs1bzNKb0gaWo= Received: by 10.64.209.6 with SMTP id h6mr1668719qbg; Sat, 28 Oct 2006 13:01:50 -0700 (PDT) Received: by 10.64.249.17 with HTTP; Sat, 28 Oct 2006 13:01:50 -0700 (PDT) Message-ID: <7f931f750610281301g5bff3575nc8aea785d093f993@mail.gmail.com> Date: Sat, 28 Oct 2006 22:01:50 +0200 From: "Javier Urbaneja" To: user-java@ibatis.apache.org Subject: Re: Deprecating the DAO framework? In-Reply-To: <16178eb10610212328o3aac17fes1a6a12b946b39a93@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_47242_2763639.1162065710364" References: <16178eb10610212328o3aac17fes1a6a12b946b39a93@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_47242_2763639.1162065710364 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline -1 iBATIS DAO framework is easy, works great, and the DAOs are a very nice place to manage the transactions. I liked the DAO framework since I saw it in action at the JPetStore example. Probably I will move on to Spring too, but I don't think every iBATIS user has to. IMHO, there's no reason to deprecate it, it's not like PaginatedList, which I agree is probably confusing some people and has some shortcomings (memory usage if it's for web applications, not serializable,...). People who don't like the DAO framework, just don't use it. Clinton, I really think you should not be "ashamed" of that nice piece of code and should not "erase" its existence in the project. Greetings. On 10/22/06, Clinton Begin wrote: > > Hi all, > > I think we should deprecate the iBATIS DAO framework for these reasons: > > > - In my opinion, the iBATIS Mapper does a fantastic job of isolating > the persistence layer as is. > - I've personally started to shy away from data access layers. > - For most applications, there's no big deal in having a dependency > on SqlMapClient. > - If you do use a DAO layer, I suggest Spring DAO > - If you can't use Spring DAO, I suggest writing your own DAO layer > that is as simple as possible and tuned for your environment. > - I don't believe very many people use the DAO framework, for those > that do, you can safely continue to do so. It hasn't changed in years, and > so it likely won't. > > Deprecation would basically mean we take it off the website as a > downloadable component and remove the doc links etc. Of course we'd still > answer the odd question on the mailing list, but we'd likely not adopt any > changes and possibly not even fix any bugs (but you're welcome to take the > source and use it under the Apache License). > > What do you think? Thoughts? > > Cheers, > Clinton > > ------=_Part_47242_2763639.1162065710364 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline -1
iBATIS DAO framework is easy, works great, and the DAOs are a very nice place to manage the transactions. I liked the DAO framework since I saw it in action at the JPetStore example.
Probably I will move on to Spring too, but I don't think every iBATIS user has to.
IMHO, there's no reason to deprecate it, it's not like PaginatedList, which I agree is probably confusing some people and has some shortcomings (memory usage if it's for web applications, not serializable,...). People who don't like the DAO framework, just don't use it.
Clinton, I really think you should not be "ashamed" of that nice piece of code and should not "erase" its existence in the project.

Greetings.

On 10/22/06, Clinton Begin <clinton.begin@gmail.com> wrote:
Hi all,

I think we should deprecate the iBATIS DAO framework for these reasons:

  • In my opinion, the iBATIS Mapper does a fantastic job of isolating the persistence layer as is. 
  • I've personally started to shy away from data access layers.
  • For most applications, there's no big deal in having a dependency on SqlMapClient.
  • If you do use a DAO layer, I suggest Spring DAO
  • If you can't use Spring DAO, I suggest writing your own DAO layer that is as simple as possible and tuned for your environment.
  • I don't believe very many people use the DAO framework, for those that do, you can safely continue to do so.  It hasn't changed in years, and so it likely won't. 
Deprecation would basically mean we take it off the website as a downloadable component and remove the doc links etc.  Of course we'd still answer the odd question on the mailing list, but we'd likely not adopt any changes and possibly not even fix any bugs (but you're welcome to take the source and use it under the Apache License).

What do you think?  Thoughts?

Cheers,
Clinton


------=_Part_47242_2763639.1162065710364--