<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database">

    <description>
        The SpringAir object definitions for the Data Access Objects.
    </description>

    <!-- Property placeholder configurer for database settings -->
    <object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
        <property name="ConfigSections" value="databaseSettings"/>
    </object>

    <!-- Production Data Access Objects -->
  <!-- Production Data Access Objects -->
  <db:provider id="dbProvider" 
                 provider="SqlServer-1.1" 
                 connectionString="Server=${db.server};Integrated Security=no;User ID=${db.user};PWD=${db.password};initial catalog=${db.schema};"/>

  <object id="adoTemplate" type="Spring.Data.Core.AdoTemplate, Spring.Data">
    <property name="DbProvider" ref="dbProvider"/>
  </object>

  <object id="aircraftDao" type="SpringAir.Data.Ado.AircraftDao, SpringAir.Data.Ado">
    <property name="AdoTemplate" ref="adoTemplate"/>
  </object>

  <object id="airportDao" type="SpringAir.Data.Ado.AirportDao, SpringAir.Data.Ado">
    <property name="AdoTemplate" ref="adoTemplate"/>
  </object>

  <object id="flightDao" type="SpringAir.Data.Ado.FlightDao, SpringAir.Data.Ado">
    <constructor-arg index="0" ref="aircraftDao"/>
    <property name="AdoTemplate" ref="adoTemplate"/>
  </object>

</objects>
