---
title: "解决hibernate 工程在myeclipse下不能自动创建hbm.xml文件"
author: "wangsong76"
date: "2010-07-12T17:13:09Z"
tags: []
categories: ["企业架构"]
slug: "hibernate-myeclipse-hbm-xml"
draft: false
lastmod: "2010-07-12T17:13:09Z"
id: 710899
url: "https://wangsong76.iteye.com/blog/710899"
---

![](http://dl.iteye.com/upload/attachment/276553/91709815-b57a-34e4-b813-0fca20e73a29.jpg)

在.project 文件中添加

```xml

<nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>

```

如下：
![](http://dl.iteye.com/upload/attachment/276556/ae4bb40d-4d28-399b-a9fd-093499b5bc51.jpg)

保存后，工程就变成了这样：
![](http://dl.iteye.com/upload/attachment/276558/6158239f-8c1d-3bf0-93e3-cc6d927624c3.jpg)



这下就可以使用具有hibernate属性的工程在myeclipse下的各种工具了，比如通过表创建hbm.xml文件