Tanghan Plugin Help File
table of Contents
1.
Introduction to each part of Tanghaplugin
2.
How to connect to database A. How to load JDBC driver B. How to add a database connection and view data in a database table?
3.
How to generate a table corresponding Hibernate mapping file and class
4.
How to edit a mapping file for Hibernate
5.
Known BUG list
6.
Todo list
7.
Download address and discussion area Note: All features can be found in the right mouse button
1. Introduction to the part of TANGHANPLUGIN
TanghanPlugin is mainly composed of two views and an editor
Display database connection and driver
Mainly used to record those database drivers and connection to the database
among them
Indicates that the drive has been loaded,
This driver cannot be loaded.
View display table data
Mainly use to display fields of the table in the database, you can also run a simple SQL statement in this view
Editing Hibernate Mapping File is mainly editing for a Hibernate Mapping file for visualization
The main features of Tanghan Plugin include
Database browser, you can browse database data, and it is a dedicated editor that generates corresponding Hibernate mapping files and corresponding class files according to database tables and corresponding class files can modify the follow-up function of the Hibernate mapping file you are under development.
2. How to connect to the database
A. How to load JDBC driver
Is the choice to add a JDBC driver? Or modify an existing JDBC driver Add a new driver to modify an existing driver (^ _ ^ title is a bit problem) Enter the corresponding information in the input box, then click OK, Tang HanPlugin will automatically load the corresponding package If the corresponding driver class can be found in this driver package, the driver can be used.
B. How to add a database connection and view the data in the database table
The first step is to choose to join a database connection? Or modify an existing database connection to add a new database to modify an existing database (^ _ ^ Title a bit problem) Enter the corresponding information in the input box, then click OK, the database driver will be recorded automatically Down. Step 2, select the connection, and click the right mouse button, select the connection database, if the driver can find, and if the information is not missed, you can get the details of the database, and after connecting the database, after connecting the database, select one Table, then select, display data in the menu of the right mouse button, this time the data appears in the other view, browse all database data in the fourth step in another view, browse all database data in the fourth step by using the next page, the previous page, etc. Modify the paging information used when browsing database data, in the window -> Preferences -> Tanghan Plugin can modify the corresponding information
3. How to generate a table corresponding Hibernate mapping file and class
The first step, after the database is connected, select the table you want to generate the Hibernate maping file, then the right mouse, select the function to generate the HBM file Enter the corresponding information Enter the appropriate information in the input box, then click Next to enter the appropriate information Modify the name of the corresponding table field Class Properties Note: Here is a known bug, when there are multiple keywords in handling a table, you will have a second step in question. After clicking OK, you can generate the corresponding file.
4. How to edit a mapping file for Hibernate
The first step is to select an existing * .hbm.xml file in the Explorer, (here there is a known bug) input the corresponding information and then you can edit him. Enter the corresponding information
5. Known BUG list
Here is a known bug that handles problems when there are multiple keywords in a table according to the table structure, and if you have multiple keywords that have the middle of the HMB.xml, the file name is unable to identify. All XML files can be opened with the editor of Hibernate Mapping File. If it is a non-HBM file to open some errors on text
6.TODO list
Generate the corresponding hibernate mapping file7 according to the class structure. Download address and discussion area
Download address http://hibernate.fankai.com/download/jlinux/ Discussion