137 lines
5.9 KiB
XML
137 lines
5.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE generatorConfiguration
|
|
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
|
|
|
<!--
|
|
Copyright (C) 2013 Glyptodon LLC
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
-->
|
|
|
|
<generatorConfiguration>
|
|
<context id="guacamoleTables" targetRuntime="MyBatis3">
|
|
|
|
<!-- Allow selectByExample with RowBounds -->
|
|
<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"/>
|
|
|
|
<!-- MySQL JDBC driver class. -->
|
|
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
|
|
connectionURL="jdbc:mysql://127.0.0.1:3306"
|
|
userId="${guacamole.database.user}"
|
|
password="${guacamole.database.password}"/>
|
|
|
|
<javaModelGenerator
|
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.model"
|
|
targetProject="MAVEN"/>
|
|
|
|
<sqlMapGenerator
|
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao"
|
|
targetProject="MAVEN"/>
|
|
|
|
<javaClientGenerator type="XMLMAPPER"
|
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao"
|
|
targetProject="MAVEN"/>
|
|
|
|
<!-- TABLES -->
|
|
|
|
<table tableName="guacamole_connection"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="Connection" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
<generatedKey column="connection_id" identity="true"
|
|
sqlStatement="SELECT LAST_INSERT_ID()"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_connection_group"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="ConnectionGroup" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
<generatedKey column="connection_group_id" identity="true"
|
|
sqlStatement="SELECT LAST_INSERT_ID()"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_connection_parameter"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="ConnectionParameter" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_connection_permission"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="ConnectionPermission" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_connection_group_permission"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="ConnectionGroupPermission" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_system_permission"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="SystemPermission" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_user"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="User" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
<generatedKey column="user_id" identity="true"
|
|
sqlStatement="SELECT LAST_INSERT_ID()"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_user_permission"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="UserPermission" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
</table>
|
|
|
|
<table tableName="guacamole_connection_history"
|
|
catalog="${guacamole.database.catalog}"
|
|
schema="${guacamole.database.schema}"
|
|
domainObjectName="ConnectionHistory" >
|
|
<property name="useActualColumnNames" value="true"/>
|
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
|
<generatedKey column="history_id" identity="true"
|
|
sqlStatement="SELECT LAST_INSERT_ID()"/>
|
|
</table>
|
|
|
|
</context>
|
|
</generatorConfiguration>
|
|
|