i'm trying to use 2 different databases with abator. they only differ in their schema names, until now i've used a workaround that i'm not really
satisfied with:

in the autogenerated method everything works fine if i just change the schema name...

but in my *Impl.java i run into a problem with the self generated queries:


example:

String state = (String) queryForObject(schema + "_ODM_BILL.getBillStateByOrderId", orderId);


--> i have to set schema in every *Impl.java and do dynamic queries like above.

also setting settings in <sqlMapConfig>

useStatementNamespaces="false"

leads to trouble as i read on this list:

http://mail-archives.apache.org/mod_mbox/ibatis-user-java/200606.mbox/[EMAIL 
PROTECTED]

here Jeff Butler writes:

<quote>
1. You need to specify useStatementNamespaces="true".  You'll not get far
with Abator if you disable namespaces.
</quote>


loooking forward for any suggestions, hints...


Thomas Schwaerzler
DEA Innsbruck
Department for Digitisation and Digital Preservation
University Innsbruck Library
6020 Innsbruck - Innrain 52 - Austria
Phone: ++43-(0)512-507-2489
Fax: ++43-(0)512-507-9842
Email: <[EMAIL PROTECTED]>
URL: http://www2.uibk.ac.at/ub/dea/


Reply via email to