ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: table attribute in Abator
Date Tue, 28 Aug 2007 12:17:56 GMT
You can use SQL wild cards in the <table> element.  So, you could specify
something like this:

<table schema="MYSCHEMA" tableName="%" />

This should generate objects for all tables in MYSCHEMA.

Jeff Butler


On 8/28/07, maomaode <maomaode@gmail.com> wrote:
>
> Oh, Sorry, I did not make myself clear,
>
> What I mean is:
>
> Is it possible to *not* specify the names of table into the configure
> file, and it just generate all the beans for the tables
>
> Thanks,
> James
>
> > Yes you can add all the names of table. Use multiple table tag.
> >
> > -----Original Message-----
> > From: maomaode [mailto:maomaode@gmail.com]
> > Sent: Tuesday, August 28, 2007 2:44 PM
> > To: user-java@ibatis.apache.org
> > Subject: table attribute in Abator
> >
> > Hi,
> >
> > The document said that "At least one database |<table>| element"
> > What if i want to generate all the tables? is there a way to generate
> > java beans for all the tables in the database, or *have to* specify the
> > tables in the config file?
> >
> > Thanks
> > James
> >
> >
> >
> >
>

Mime
View raw message