Package co.ohba.autumn.AutumnConfig

Examples of co.ohba.autumn.AutumnConfig.Jdbc


    val dsType = atmnCnf.getDataStoreType();
   
    Map<String, String> properties = Maps.newHashMap();

    if(dsType == DataStoreType.JDBC) {
      Jdbc jdbc = atmnCnf.getJdbc();
      properties.put(PersistenceUnitProperties.JDBC_DRIVER, jdbc.getDriver());
      properties.put(PersistenceUnitProperties.JDBC_URL, jdbc.getUrl());
      properties.put(PersistenceUnitProperties.JDBC_USER, jdbc.getUser());
      properties.put(PersistenceUnitProperties.JDBC_PASSWORD, jdbc.getPassword());
     
      properties.put(PersistenceUnitProperties.DDL_GENERATION, PersistenceUnitProperties.CREATE_OR_EXTEND);
      properties.put(PersistenceUnitProperties.DDL_GENERATION_MODE, PersistenceUnitProperties.DDL_DATABASE_GENERATION);

    } else if (dsType == DataStoreType.MONGO) {
View Full Code Here

TOP

Related Classes of co.ohba.autumn.AutumnConfig.Jdbc

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.