3 Replies Latest reply on Jun 1, 2006 3:22 PM by Max Rydahl Andersen

    Hibernate tools with annotations?

    Jason Long Master

      I am able to do queries in Hibernate tools, but I have to explicitly declare each mapped class in my hibernate.cfg.xml file.

       <mapping class="pipetracker.model.contact.Area"/>
      


      Is this necessary? Is there any way that by including the jar containing my model these classes can automatically be loaded.

      I stripped this list out of my AS log for the 120+ entites for one of my projects. And added them manually.

      This seems to work fine, but if I change my enties name or package I will have to fix it in this file as well.

      Any suggestions?