无法在eclipse中导入hibernate配置文件

问题描述 投票:0回答:2

我使用了安装了 Hibernate Tools 的 Eclipse Helios。一切都很好。现在我已经换成Eclipse Kepler了。看起来它还安装了 Hibernate 工具,因为我可以更改为 Hibernate 视角。当我尝试导入旧项目 Hibernate 配置时(如此处所示)。不出现导入 Hibernate 配置文件的选项。这是我的导入对话框的图像:

enter image description here

java eclipse hibernate
2个回答
2
投票

我认为你也可以通过这种方式实现你所需要的:

  1. 单击图片左上角突出显示的 + 图标
  2. 设置适合您具体案例的所有信息
  3. 单击设置...
  4. 单击 使用现有...

Import Existing Hibernate Configuration file

希望这会有用!


0
投票
In my case, I removed <type>pom<type> from the hibernate jar and it worked. Also, please save and update the project.
Which was like this when I copied from Maven repo.
<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>6.3.0.Final</version>
        <type>pom</type>
    </dependency>
© www.soinside.com 2019 - 2024. All rights reserved.