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