Workarounds when using Hibernate reverse engineering to select Java SRC folder

Source: Internet
Author: User

Workarounds when using Hibernate reverse engineering to select Java SRC folder

Either the project already supports the Hibernate feature, and the. project file does not include a description of the attribute, or the project does not add hibernate attributes.

I used the MyEclipse5.5.1 development tool, did not use the MyEclipse Hibernate tool to automatically generate the entity class, but wrote the Hibernater configuration file by hand. Unfortunately, an error occurred while using Hibernate Reverse Engineering to generate the entity class.

A gray dialog box pops up after selecting the browse button after the Java src folder. As shown in the following:

So I made a demo and used the MyEclipse tool to automatically add hibernate packages, After careful comparison, I found that there was a problem with the file in. Project, and in the final natures I created my own file without the following red line of code, and I added this line of code to my own new project, which solved the problem.

<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>

Workarounds when using Hibernate reverse engineering to select Java SRC folder

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.