Package com.springsource.greenhouse.database

Examples of com.springsource.greenhouse.database.DatabaseUpgrader


    }

    // internal helpers
   
    private EmbeddedDatabase populateDatabase(EmbeddedDatabase database) {
      new DatabaseUpgrader(database, environment, textEncryptor) {
        protected void addInstallChanges(DatabaseChangeSet changeSet) {
          changeSet.add(SqlDatabaseChange.inResource(new ClassPathResource("test-data.sql", getClass())));
        }
      }.run();
      return database;
View Full Code Here


    @Bean(destroyMethod="dispose")
    public DataSource dataSource() {
      JdbcConnectionPool dataSource = JdbcConnectionPool.create(environment.getProperty("database.url"),
          environment.getProperty("database.username"), environment.getProperty("database.password"));
      new DatabaseUpgrader(dataSource, environment, textEncryptor).run();
      return dataSource;
    }
View Full Code Here

TOP

Related Classes of com.springsource.greenhouse.database.DatabaseUpgrader

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.