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 Guido García Bernardo <gg...@tid.es> on 2006/05/09 11:27:00 UTC
define and use a property into the sql maps
Hi,
I would like to define a property in a single point and be able to use
it in the entire document, with no need to pass each time from the Java
code.
i.e.
* sql-map-config.xml
<sqlMapConfig>
<properties resource="properties/ibatis.properties" />
...
</sqlMapConfig>
* ibatis.properties
DBLINK=@database_prod
* sql-map.xml
<statement ...>
select cl, tipo from VITATIPO${DBLINK}
order by CL
</statement>
or something like that...
Thank you very much,
Guido García Bernardo