Example usage for org.apache.ibatis.mapping Environment getId

List of usage examples for org.apache.ibatis.mapping Environment getId

Introduction

In this page you can find the example usage for org.apache.ibatis.mapping Environment getId.

Prototype

public String getId() 

Source Link

Usage

From source file:das.orm.ORMFacade.java

License:Apache License

public String getEnvironmentId() throws IOException {
    log.trace(">>> getEnvironmentId");
    Configuration conf = getConfiguration();
    Environment env = conf.getEnvironment();
    return env.getId();
}

From source file:org.mybatis.guice.environment.EnvironmentProviderTest.java

License:Apache License

@Test
public void get() {
    Environment environment = environmentProvider.get();
    assertEquals(id, environment.getId());
    assertEquals(dataSource, environment.getDataSource());
    assertEquals(transactionFactory, environment.getTransactionFactory());
}