解决方法就是,在工程的.project文件中,加上如下配置,说明此项目是hibernate项目。

  com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder

 

 

 

 

  com.genuitec.eclipse.hibernate.HibernateBuilder

 

 


org.eclipse.jdt.core.javanature

com.genuitec.eclipse.persistence.jpa.jpanature

com.genuitec.eclipse.hibernate.hibernatenature