ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Karl Schwaerzler <Thomas.Schwaerz...@uibk.ac.at>
Subject abator: changing databases question
Date Mon, 26 Feb 2007 16:25:57 GMT

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:


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

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

also setting settings in <sqlMapConfig>


leads to trouble as i read on this list:


here Jeff Butler writes:

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

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: <Thomas.Schwaerzler@uibk.ac.at>
URL: http://www2.uibk.ac.at/ub/dea/

View raw message