## Copyright 2001-2005 The Apache Software Foundation.
##
## Licensed under the Apache License, Version 2.0 (the "License")
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
##     http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
<?xml version="1.0" encoding="UTF-8"?>

<!--
  Repository for the Apache ObJectRelationalBridge (OJB) System.
  Generated by Torque on: [$now]
-->

<!-- defining entities for include-files -->
<!DOCTYPE descriptor-repository PUBLIC
       "-//Apache Software Foundation//DTD OJB Repository//EN"
       "repository.dtd"
[
<!ENTITY internal SYSTEM "repository_internal.xml">
#foreach ($dataModel in $dataModels)
<!ENTITY $dataModel.shortName SYSTEM "repository_${dataModel.Name}.xml">
#end
]>

<descriptor-repository version="1.0" isolation-level="read-uncommitted">
<!-- The Default JDBC Connection. If a Class does not specify its own JDBC Connection,
     the Connection specified here will be used. -->

  <jdbc-connection-descriptor id="default"
    jcd-alias="default"
    default-connection="true"
    platform="$ojbPlatform"
    jdbc-level="${jdbcLevel}"
  #if ($ojbUseJNDI)
    jndi-datasource-name="$ojbJNDISource"
  #else
    driver="$databaseDriver"
    protocol="$urlProtocol"
    subprotocol="$urlSubprotocol"
    dbalias="$urlDbalias"
  #end
    username="$databaseUser"
    password="$!databasePassword"
  >
    <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
      <attribute attribute-name="grabSize" attribute-value="5"/>
      <attribute attribute-name="globalSequenceId" attribute-value="true"/>
      <attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
    </sequence-manager>
  </jdbc-connection-descriptor>


  <!-- include internal mappings here -->
  &internal;

  <!-- include mappings here -->
#foreach ($dataModel in $dataModels)
  &${dataModel.Name};
#end

</descriptor-repository>


