我正在使用ant腳本進行Hibernate逆向工程,以從數據庫表生成帶註釋的POJO類。在這個過程中,我想在控制檯上編寫所有的細節,如每個表的名稱和生成的類等。 你能幫我嗎?休眠逆向工程從數據庫表中生成帶註釋的POJO類
<target name="gen_hibernate" description="Generate Hibernate POJO classes with prefix 'Gen'">
<hibernatetool >
<classpath path="${build.dir}/classes"/>
<jdbcconfiguration
configurationfile="${appdir}/generate/hibernate/hibernate.cfg.xml"
revengfile="${appdir}/generate/hibernate/hibernate.reveng.xml"
packagename="com.pojo.generated"
detectmanytomany="true"
detectoptimisticlock="true"
/>
</hibernatetool>
</target>
你正在使用哪個螞蟻任務? – Santosh