Quickly create persistence classes, mapping files, and Hibernate components using MyEclipse reverse engineering

Source: Internet
Author: User

Create a connection template in MyEclipse

First, select this item

Second, right-click to create a new connection template

Third, enter this page to select the database, Driver name for this connection template name, click Add Jars Select the driver Class (under the installation directory under Oracle Ojdbc6.jar), in the Save password optional (whether to save the password) and then click Next

Four, select the database mode, click Add, select the Scott mode, Finsh.

To create a hibernate configuration file
First, select the project

Second, if there is no corresponding version, remove all the √, click Next

Third, if there is an XML file selection existing, there is no choice new,next

Iv. DB Driver Select the connection template that you just created, and generate it automatically.

V, √ remove, Finish.

Persisting classes and mapping files

First, switch to this interface

Second, select the tool table to export

Third, the first √ is to create the mapping file, below the update Hibernate .... This √ can be automatically generated in the Hibernate configuration file mapping, the second √ create a persistent class

Iv. Choosing a primary key generation method

V. Select Table PRIMARY key generation mode


End

Quickly create persistence classes, mapping files, and Hibernate components using MyEclipse reverse engineering

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.