来自HBM文件的POJO [英] POJO from HBM file

查看:107
本文介绍了来自HBM文件的POJO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI all,

我是hibernate的新手,我会从xxx.hbm.xml文件创建POJO。



有可能吗?请回复。 4.4.2。 POJO java代码导出器(< hbm2java>)在文档中。



Hibernate3 Maven Plugin 也支持这个(使用 hibernate3:hbm2java 目标)。


HI all,

I am new to hibernate and I would to create POJO from xxx.hbm.xml file.

Is it possible? Please respond.

解决方案

The Hibernate Tools include an Ant Task allowing to generate Java code from mapping files (amongst other things). Check the section 4.4.2. POJO java code exporter (<hbm2java>) in the documentation.

The Hibernate3 Maven Plugin also supports this (with the hibernate3:hbm2java goal).

这篇关于来自HBM文件的POJO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆