Menu

#9 Schema Element Consistency

open
nobody
None
5
2004-05-06
2004-05-06
Ted Husted
No

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.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Yes, you are right Ted.
    I will try to implement in the next version.

    -Gilles

     
  • Ted Husted

    Ted Husted - 2004-06-10

    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.'

     

Log in to post a comment.

MongoDB Logo MongoDB