<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE config SYSTEM "sql2java.cfg.dtd">-->
<!--
Document : sql2java.cfg.xml
Created on : 14 maart 2007, 8:28
Author : annba
Description:
This is the main configuration file for sql2java.
-->
<config>
<!-- Datasource Configuration -->
<information>
<!--
- The database information we need to log into the database
-
- atributes :
- driverclass : The class of the driver
- url : The url to connect to
- username : The username to use when logging in
- password : The password to use when logging in
-->
<!--<credentials driverclass="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/projects" username="hogent" password="hogent" />-->
<!--<credentials driverclass="org.postgresql.Driver" url="jdbc:postgresql://localhost:5432/tvh" username="tvh" password="tvh" />-->
<credentials driverclass="org.apache.derby.jdbc.ClientDriver" url="jdbc:derby://localhost:1527/sql2java" username="daan" password="vergeten" />
<!--
- Interests
-
- In what are we interested to generate?
-
- attributes :
- name : table | view | ...
-->
<interests>
<interest name="TABLE" />
</interests>
<includes>
<include id="schema" includePattern="DAAN" />
<include id="table" includePattern="%" />
<include id="column" includePattern="%" />
</includes>
<!--
- Locking type
- optimisticlock.type can take 2 values:
- none - the optimistic lock mechanism is disabled (default).
- timestamp - the optimistic lock column contains the System.currentTimeMillis() value.
-
- optimisticlock.column takes the column name used by optimistic lock mechanism in your database.
- If this column is not present in some table the optimistic lock is not applied there.
- the column mapping can be java.lang.Long or java.lang.String.
- (jdbc type size >= 13 characters)
-->
<locking type="timestamp" column="version_time" />
<!--
- Discovery of relations inside the database
-
- attributes :
- type : sql | xml | none
- filename : filename of the xml document with the relation description
-->
<relation type="none" filename="etc/databaseLinks.xml" />
<!--
- Sequence Fetching Strategy
-
- attributes :
- timing : before | after
-
- values :
- the query to execute to retreive the sequence
-->
<sequence timing="before">
SELECT nextval(':table_SEQ')
</sequence>
<columns>
<column name="oid" type="4" size="11" system="true" access="1" />
</columns>
</information>
<!-- Features -->
<features resource="etc/features.cfg.xml" />
<!-- Conversion Configuration -->
<conversions resource="etc/conversions.cfg.xml" />
<!-- Scripting -->
<scripts resource="etc/scripts.cfg.xml" />
<!-- Templates -->
<templates resource="etc/templates.cfg.xml" />
<!-- Generator Configuration -->
<generation>
<feature refid="spring" />
<!--
- Define generator specific properties
-
- attributes :
- key : the name of the property
- value : the value of the property
-->
<properties>
<property key="beanClass" value="" />
</properties>
</generation>
</config>