Schema Element Consistency
Status: Alpha
Brought to you by:
sellig
Most of the elements in the schema have "container
elements", such as "statements" for statement. But
alias, provider, and sqlMap, do not. Consistent usage in
an API shortens the learning curve, and it would seem
consistent to have aliases, providers, and sqlMaps
elements.
-Ted.
Logged In: NO
Yes, you are right Ted.
I will try to implement in the next version.
-Gilles
Logged In: YES
user_id=3618
iBATIS 2.x removes multiple datasources. Accordingly, we
should remove the <datasources> wrapper element and expect
there to be a single instance of datasource and provider.
The default attribute of datasource should also be removed
(since there can only be only one).
I'm using multiple datasources via multiple configuration
now, and it's working just fine. This seems like a better
solution, since a different datasource can mean different
SQL. With a separate configuration file, it's easier to use
different maps, or the same maps, as needed.
-Ted.'