Hi all,
To date, I've been using Hibernate Annotations, then using the HibernateToolTask's <hbm2ddl> directive to generate the DDL and output to file. I had a hibernate.cfg.xml file which specified the mappings via the <mapping class=""> tag.
I've recently moved the code around to use the EntityManager and a .par file, in part so I wouldn't have to edit the <mapping class=""> entries every time I add, remove or refactor my mapping classes. However, the HibernateToolTask seems to rely on the <annotationconfiguration> tag, which means I'll have to use hibernate.cfg.xml once again to explicitly declare my mappings.
Is there any way to get HibernateToolTask to read a .par file instead? Or is there some other tool that I could use that will read the .par file to generate my DDL?
Thanks,
Patrick
|