What is the simplest way to export the schema from this example to a ddl file? I had in mind the hbm2ddl task, but would that work with EJB3 using annotations (therefore not having a hbm.xml)
I've attempted setting up hbm2ddl as a property in the persistence.xml without results.
<property name="hibernate.hbm2ddl.text" value="yes"/> <property name="hibernate.hbm2ddl.output" value="sql-output.ddl"/>
Are those really valid hibernate properties?
Have you tried the hibernate ant tasks?