POJO from HBM file

Hi all,

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

Is it possible? Please reply.

0
source share
1 answer

Hibernate Tools includes an Ant task that allows you to generate Java code from mapping files (among other things). Check section 4.4.2. POJO java code exporter (<hbm2java>) in the documentation.

Hibernate3 Maven Plugin also supports this (c hibernate3:hbm2java).

+1
source

Source: https://habr.com/ru/post/1749011/


All Articles