公告
财富商城
积分规则
提问
发文
2020-02-16 01:45发布
▲ chillily
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).
hibernate3:hbm2java
最多设置5个标签!
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).