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 Huy Do <hu...@sicab.com.au> on 2007/02/06 15:16:03 UTC

abator - namespace naming

Hi,

Just starting to use abator and I was wondering if I could control the 
namespace naming in the generated sqlmal xml file.

I am trying to reuse the appfuse UniversalDAO with the abator generated 
sqlmap files.

Many Thanks

Huy

Re: abator - namespace naming

Posted by Huy Do <hu...@sicab.com.au>.
Hi Jeff,

It's not so much a restriction, but the code currently uses the class 
name as the name space for finding the appropriate statement (eg. 
MyTable.insert() which in abator is my_table_SqlMap.abatorgenerated_insert).
I guess I could always convert the class name into table names and use 
that to call the relevant ibatis statement.

Thanks.

Huy
> There's no configuration option to do this.  You could do it through 
> code - by implementing the SqlMapGenerator interface.
>  
> I'm not familiar with UniversalDAO - what kind of restrictions is it 
> placing on the DAOs?
>  
> Jeff Butler
>
>
>  
> On 2/6/07, *Huy Do* <huy@sicab.com.au <ma...@sicab.com.au>> wrote:
>
>     Hi,
>
>     Just starting to use abator and I was wondering if I could control the
>     namespace naming in the generated sqlmal xml file.
>
>     I am trying to reuse the appfuse UniversalDAO with the abator
>     generated
>     sqlmap files.
>
>     Many Thanks
>
>     Huy
>
>


Re: abator - namespace naming

Posted by Jeff Butler <je...@gmail.com>.
There's no configuration option to do this.  You could do it through code -
by implementing the SqlMapGenerator interface.

I'm not familiar with UniversalDAO - what kind of restrictions is it placing
on the DAOs?

Jeff Butler



On 2/6/07, Huy Do <hu...@sicab.com.au> wrote:
>
> Hi,
>
> Just starting to use abator and I was wondering if I could control the
> namespace naming in the generated sqlmal xml file.
>
> I am trying to reuse the appfuse UniversalDAO with the abator generated
> sqlmap files.
>
> Many Thanks
>
> Huy
>