To generate a hibernate mapping file with PowerDesigner

Source: Internet
Author: User
Tags powerdesigner

1. Execution: new->conceptual Data Model
After compiling the conceptual model
2. Execution: tools->generate physical Data Model
Then select the generated physical data model
3. Implementation: Tools->generate object-oriented Model
In the dialog box, select Dtail, tick O/R Mapping, click Enable transformations, in the more out of the tab extended Model

In this position to load a little something of ha .... Because I have the longest card in this place.

The above Object language position is blank at the beginning, is very annoyed later found to choose the file location, the file location is, Powerdesign/resource Files/object Languages, after the point to choose Java on it, MMD really trouble.

My beginning of the center is blank, but also annoying things, but there is a train of thought after I went to the folder to find, Emperor not negative, ah, very easy to find ... Powerdesign/resource files/extended Model definitions choice is OK.

Hibernate is selected in the O/R mapping page in 4.Definitions.
After the object-oriented model is generated
5. Re-execution: language->generate Java Code

Do not choose that middle of the upper Cheke Modle, will kill the dead, no matter how you debug always error, you make again will also error, nnd, this place quickly put me to suppress crazy, because of how big a tick ....

You'll see the generated Java code and the mapped Hbm.xml file

The rest is to see for yourself what the generated files are all about .... I haven't seen it yet, come here first, read the build file again

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.