I\'m using hibernate annotations and i want to export my database schema.
Similar to the schemaexporttask with hbm xml files.
You can. Just do it
AnnotationConfiguration configuration = new AnnotationConfiguration();
configuration
.addAnnotatedClass(.class)
.setProperty(Environment.USER, )
.setProperty(Environment.PASS, )
.setProperty(Environment.URL, )
.setProperty(Environment.DIALECT, )
.setProperty(Environment.DRIVER, );
SchemaExport schema = new SchemaExport(configuration);
schema.setOutputFile("schema.sql");
schema.create(, );