Hibernate In the ant function of hbmtemplate, * .hbm.xml files are possible instead of reading input Table details on JDBC
Is there a way to do this in the HBM template target from Codehaus?
In the ant, I can do this by adding a fileset to the configuration:
& lt; Configuration Configuration = "hibernate.cfg.xml" & gt; & Lt; Fileset dir = "generated / xml" & gt; & Lt; Include name = "* .hbm.xml" /> & Lt; / Fileset & gt; & Lt; / Configuration & gt; & Lt; Hbmtemplate templateprefix = "pojo /" template = "Pojo.ftl" />
Do you have your hbm.xml files in your < Code> src / main / resources or src / test / resources
directory? Maven joins those folders in the classroom.
No comments:
Post a Comment