Menu

[r36]: / trunk / etc / sql2java.cfg.xml  Maximize  Restore  History

Download this file

114 lines (99 with data), 3.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?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>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.