zoukankan      html  css  js  c++  java
  • Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

    问题描述:

     web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project。

    并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的javasource路径。

     

    原因:

    使用版本控制的时候,工程根目录下的: .project  和 .myhibernatedata 文件不在版本控制范围内,因此组内成员更新source后,缺少

    .project 内的 <nature>com.genuitec.eclipse.hibernate.hibernatenature</nature> 和.myhibernatedata 文件。

     

    解决办法:

    项目名上右键--〉myeclipse-->add hibernate capabilites -->next-->hibernate config file --> existing -->选择现有工程存在的hibernate配置文件--> next --> 不生成sessionFactory class --> end

  • 相关阅读:
    单表查询
    阻塞非阻塞同步异步&异步回调
    基于协程的TCP并发编程
    协程
    死锁与递归锁
    线程池和进程池
    GIL全局解释器锁
    数据库——多表关系
    常用数据类型与约束
    Python基础(目录)
  • 原文地址:https://www.cnblogs.com/suncoolcat/p/3331168.html
Copyright © 2011-2022 走看看