use of io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory in project jans by JanssenProject.
the class SpannerEntryManagerSample method createSpannerEntryManager.
public SpannerEntryManager createSpannerEntryManager() {
SpannerEntryManagerFactory sqlEntryManagerFactory = new SpannerEntryManagerFactory();
sqlEntryManagerFactory.create();
Properties connectionProperties = getSampleConnectionProperties();
SpannerEntryManager sqlEntryManager = sqlEntryManagerFactory.createEntryManager(connectionProperties);
LOG.debug("Created SpannerEntryManager: " + sqlEntryManager);
return sqlEntryManager;
}
use of io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory in project jans by JanssenProject.
the class ManualSpannerEntryManagerTest method createSpannerEntryManager.
public SpannerEntryManager createSpannerEntryManager() throws IOException {
SpannerEntryManagerFactory sqlEntryManagerFactory = new SpannerEntryManagerFactory();
sqlEntryManagerFactory.create();
SpannerEntryManager sqlEntryManager = sqlEntryManagerFactory.createEntryManager(loadProperties());
System.out.println("Created SpannerEntryManager: " + sqlEntryManager);
return sqlEntryManager;
}
Aggregations