Code example for SchemaExport

Methods: createsetOutputFile

0
	    Map jpaPropertyMap = entityManagerFactory.getJpaPropertyMap(); 
 
	    @SuppressWarnings("deprecation") 
		org.hibernate.cfg.Configuration configuration = new Ejb3Configuration().configure( persistenceUnitInfo, jpaPropertyMap ).getHibernateConfiguration(); 
 
	    SchemaExport schema = new SchemaExport(configuration); 
	    schema.setOutputFile("c:/schema.sql"); 
	    schema.create(true, false); 
 
		 
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java