Joined: Wed Jan 16, 2008 2:43 am Posts: 4 Location: San Diego
|
Hi,
We are generating hbm.xml files using xdoclet right how and using schemaexport to generate ddl. I would like to use JPA annotations for all the new POJOs and keep the xdoclet and hbm.xml files for the legacy models. I am using Spring's org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean to create the SessionFactory and it works really great. Now I am stuck with hbm2ddl. I can't have 2 configurations (configuration and annotationconfigration) in the same hibernatetool. Is there a way where hibernatetool can read configurations from both resources and classes and the hbm2ddl exporter can generate the ddl. My understanding about generating hbm.xml file from annotated class is that it is not recommended.
Thanks for all your help
|
|