ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maomaode <maoma...@gmail.com>
Subject Re: table attribute in Abator
Date Wed, 29 Aug 2007 02:39:05 GMT
Hi,

Thanks for the reply

BTW, what's the schema for? is it the prefix of the table? e.g plog in 
the 'plog_users'
Sorry, I'm totally new to the db

James


> 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 
> <mailto: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
>     <mailto:maomaode@gmail.com>]
>     > Sent: Tuesday, August 28, 2007 2:44 PM
>     > To: user-java@ibatis.apache.org <mailto: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