ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Odilon Oliveira" <odilont...@gmail.com>
Subject Re: Abator: Custom DAO
Date Wed, 18 Oct 2006 18:32:24 GMT
Jeff,

Would be interesting have methods like that.
So in your templates you have precise control about what will be exposed to
the interface.

Thanks for the example. =)

* Let me know if you implement that features.

On 10/18/06, Jeff Butler <jeffgbutler@gmail.com> wrote:
>
> retrieveAll methods are simple to write:
>
> List retrieveAll() {
>   XXXExample example = new XXXExample();
>   return selectByExample(example);
> }
>
> I did not include support for them in the base Abator code because I think
> it's kind of unusual to use them.
>
> Nevertheless, if you are trying to build a custom DAO generator that will
> always generate them then I haven't made it easy for you.  I'll add a call
> to enable you to add methods to the interface also.  I'll add something
> similar to the SqlMapGenerator and the JavaModeGenerator too in case that
> would be useful to anyone.
>
> Jeff Butler
>
>
> On 10/18/06, Odilon Oliveira <odilontalk@gmail.com> wrote:
> >
> > Hello,
> >
> > I'm trying add a custom method to my DAO interface, like retrieveAll()
> > to return all objects from database.
> > Looking at documentation, the AbstractDAOTemplate class doesnt provide a
> > way to do this.
> >
> > Taking a look at BaseDAOGenerator class we have
> > getExtraImplementationMethods method, but nothing related
> > to add new methods in DAO interface.
> >
> > Any clue ?
> >
> > --
> > ---
> > dilas.com.br
>
>
>


-- 
---
dilas.com.br

Mime
View raw message