Error Analysis Using hibernate reverse engineering after manual Configuration

Source: Internet
Author: User

I used the development tool MyEclipse5.5.1. Instead of using the Hibernate tool of MyEclipse to automatically generate object classes, I wrote the hibernater configuration file manually. Unfortunately, an error occurs when Hibernate Reverse Engineering is used to generate an object class.

 

Select the Browse button after JAVA src Folder to bring up a gray dialog box. As shown in:

So I made a DEMO and used the myeclipse tool to automatically add the hibernate package. After careful comparison, I found that. there is a problem with the project file. In the final natures, there is no red line of code in the file I created myself. I added this line of code to my new project, this problem is solved.

<Natures>
<Nature> com. genuitec. eclipse. hibernate. hibernatenature </nature>
<Nature> com. genuitec. eclipse. ast. deploy. core. deploymentnature </nature>
<Nature> com. genuitec. eclipse. j2eedt. core. webnature </nature>
<Nature> org. eclipse. jdt. core. javanature </nature>
</Natures>

 

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.