Loading
Generate Hibernate POJO.

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to generate Hibernate POJO from config XMLs ?


Ans)

Here the ANT Target.

<target name="hbm2java"> 
        <taskdef name="hibernatetool" 
          classname="org.hibernate.tool.ant.HibernateToolTask" 

          classpathref="lib.classpath"/> 
        <hibernatetool destdir="${hbm2java.dest.dir}" 
          templatepath="${hbm.template.path}"> 
          <classpath> 
            <path refid="pojo.classpath"/> 
          </classpath>        
          <configuration> 
            <fileset dir="${hbm2java.src.dir}"> 
              <include name="**/*.hbm.xml"/> 
            </fileset> 
          </configuration> 
          <hbm2java/> 
        </hibernatetool> 
    </target> 


 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Generate Hibernate POJO.


Generate Hibernate POJO.

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free