POJO from HBM file

前端 未结 1 1865
走了就别回头了
走了就别回头了 2020-12-22 08:45

HI all,

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

Is it possible? Please respond.

相关标签:
1条回答
  • 2020-12-22 09:12

    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).

    0 讨论(0)
提交回复
热议问题