Indeed, the original Hibernate Core SchemaExportTask
can only handle Hibernate XML mapping files, not annotations. What you need is the HibernateToolTask
that comes with Hibernate Tools.
Here is an Usage example adapted from Java Persistence With Hibernate:
See also
- Hibernate 3 Annotations & Ant