meissa wrote:
Hi all,
I'm using hibernate middlegen plugin for my DAOs generation.
I would like to know if it's possible to cutomise it like below:
1) all DAO will extends a given class
2) generate only methods signature (without codes) we can give.
any help would be greetly appreciated.
Meissa
Plssssssssssssss can u telll how DAO classes are generating by using Hibernate-middlegen. I can able to generate POJO classes not DAOs.
How i need to genertate those.. I am using hbm2java target like this
<!-- =================================================================== -->
<!-- Run hbm2java depends="middlegen" -->
<!-- =================================================================== -->
<taskdef
name="hbm2java"
classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="lib.class.path"
/>
<target name="hbm2java" description="Generate .java from .hbm files.">
<hbm2java output="pojos">
<fileset dir="${build.gen-src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>
</target>
Pleaseeeeeeee send thiss,
Thanks,
Mahesh