Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-69

Allow sqlMap nodes to come from an external location rather than /sqlMapConfig/sqlMaps/sqlMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • DataAccess 1.7, DataMapper 1.3
    • None
    • None

    Description

      "
      Re: Sharing Maps and Configs

      Bob Hanson
      Fri, 29 Apr 2005 13:38:23 -0700

      I think one small change would go a long way towards making
      configuration as flexible as possible.

      Remove the <sqlMap> elements from SqlMap.config and allow <sqlMaps> to
      specify a URL to a separate maps.config file like:
      <sqlMaps url="c:/some directory/myDatabase/TEST/maps.config">
      or
      <sqlMaps url="c:/some directory/myDatabase/PROD/maps.config">

      This way the maps can be defined in a single location. As my example
      above shows, it makes it very easy to switch between a test and
      production version of the maps. If you are using a DAL you don't have
      to modify a bunch of elements in every SqlMap.config for every single
      project that is using the DAL. They would all just point to the
      version of the maps.config file that they need.
      "

      http://tinyurl.com/cln88
      http://www.mail-archive.com/ibatis-user-cs%40incubator.apache.org/msg00354.html

      http://tinyurl.com/dht49
      http://www.mail-archive.com/ibatis-user-cs%40incubator.apache.org/msg00416.html

      Attachments

        Activity

          People

            gilles Gilles Bayon
            ron liu ron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: