Tip: The project is not a myeclipse hibernate project when you open the Hibernate.cfg.xml file in the problem Web project.
Also: When using Hibernate reverse engineering to establish the bean and configuration file for the table in Dbbrower: No Javasource path is available.
Reason:
When using version control, the project root directory:. Project and. myhibernatedata files are not in version control, so after the members of the group have updated the source, they are missing
. <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature> in Project
And
. myhibernatedata file.
Solution
Project name right-click--〉myeclipse-->add hibernate capabilites-->next-->hibernate config file--and existing-- Select the hibernate profile that exists for an existing project----and do not generate factory class--and end
PS: Transfer from http://blog.csdn.net/ice0river/archive/2008/08/23/2817486.aspx