I look for a way how I can create a ddl for my jpa annotated entities. I prefer a pure java way for this.
If possible it would be nice to have generate the drop statemen
OpenJPA has support for this too. The OpenJPA mapping tool can create a script or create a ddl file. The ddl should work with other JPA implementations (although each vendor has a few quirks).
If you're using OpenJPA as a persistence provider you can configure OpenJPA to create the tables the first time they're needed by adding the SynchronizeMappings property to persistence.xml.
Example :