mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Ticket #269: Created some documentation and included generated MyBatis mappings.
This commit is contained in:
37
extensions/guacamole-auth-mysql/README.mybatis
Normal file
37
extensions/guacamole-auth-mysql/README.mybatis
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
------------------------------------------------------------
|
||||
About this README
|
||||
------------------------------------------------------------
|
||||
|
||||
This README is intended to provide quick and to-the-point documentation for
|
||||
technical users intending to generate MyBatis ORM code for the
|
||||
guacamole-auth-mysql project.
|
||||
|
||||
------------------------------------------------------------
|
||||
MyBatis?
|
||||
------------------------------------------------------------
|
||||
|
||||
MyBatis is the orm used for connection to MySQL in the
|
||||
guacamole-auth-mysql project. For more information about MyBatis, see
|
||||
http://code.google.com/p/mybatis/
|
||||
|
||||
------------------------------------------------------------
|
||||
Generating the MyBatis mappings
|
||||
------------------------------------------------------------
|
||||
|
||||
1) Download the MyBatis mapping generator
|
||||
|
||||
Go to http://code.google.com/p/mybatis/wiki/Generator to download
|
||||
the MyBatis mapping generator jar.
|
||||
|
||||
2) Set up the MyBatis mapping generator configuration xml
|
||||
|
||||
A commented sample file is provided in docs/examples.
|
||||
For more information, see the documentation provided in the download from step 1.
|
||||
|
||||
3) Generate the source files
|
||||
|
||||
java -jar mybatis-generator-core-1.3.2.jar -configfile mybatisconfig.xml [-overwrite]
|
||||
|
||||
This command will create the generated java and xml source in the location specified
|
||||
in the configuration xml.
|
Reference in New Issue
Block a user