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 Chris Lewis <cf...@gmail.com> on 2009/08/20 09:21:25 UTC

Newbie questions: Merging / DAO?

Hi guys,
I'm new to iBATIS, so I am probably missing something obvious, but is
there a way to do a merge ie. create a record if one with the primary
key doesn't exist, or insert it if it does? I've used such a function
in other ORM packages, and appreciate the removal of boilerplate. I
can't find it in the docs, but like I said, I'm sure I'm missing
something!

Also, I was looking through the JPetShop example, and noticed an
entire DAO substructure that is never mentioned in the docs. Is there
somewhere I can look up this style of architecture?

Thanks!

--
Chris Lewis

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


Re: Newbie questions: Merging / DAO?

Posted by Clinton Begin <cl...@gmail.com>.
We've deprecated the DAO framework and are working on a new petstore
implementation.

Cheers,
Clinton

On Thu, Aug 20, 2009 at 1:21 AM, Chris Lewis <cf...@gmail.com> wrote:

> Hi guys,
> I'm new to iBATIS, so I am probably missing something obvious, but is
> there a way to do a merge ie. create a record if one with the primary
> key doesn't exist, or insert it if it does? I've used such a function
> in other ORM packages, and appreciate the removal of boilerplate. I
> can't find it in the docs, but like I said, I'm sure I'm missing
> something!
>
> Also, I was looking through the JPetShop example, and noticed an
> entire DAO substructure that is never mentioned in the docs. Is there
> somewhere I can look up this style of architecture?
>
> Thanks!
>
> --
> Chris Lewis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>