Package com.jada.xml.persistence

Examples of com.jada.xml.persistence.Persistence


  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);
    }
   
    configuration.setProperty("hibernate.dialect", dialectName);
View Full Code Here

TOP

Related Classes of com.jada.xml.persistence.Persistence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.