}
public void export() throws Exception {
AnnotationConfiguration configuration = new AnnotationConfiguration();
configuration.setProperty("hibernate.hbm2ddl.auto","create");
PersistenceLoader persistenceLoader = PersistenceLoader.getInstance();
Persistence persistence = persistenceLoader.getPersistence();
for (String className : persistence.getPersistenceUnit().getClassNames()) {
Class<?> c = Class.forName(className);
configuration.addAnnotatedClass(c);
}