本文整理了Java中org.hibernate.SessionFactory.getProperties()
方法的一些代码示例,展示了SessionFactory.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SessionFactory.getProperties()
方法的具体详情如下:
包路径:org.hibernate.SessionFactory
类名称:SessionFactory
方法名:getProperties
暂无
代码示例来源:origin: org.codehaus.griffon.plugins/griffon-hibernate5-core
@Override
public Map<String, Object> getProperties() {
return delegate.getProperties();
}
代码示例来源:origin: hibernate/hibernate-search
private static void printEnvInfo(TestContext testCtx, PrintWriter out) {
out.println( "" );
out.println( "TEST CONFIGURATION" );
out.println( " measure performance : " + TestConstants.arePerformanceTestsEnabled() );
out.println( " threads : " + testCtx.threadCount );
out.println( " measured cycles : " + testCtx.measuredCyclesCount );
out.println( " warmup cycles : " + testCtx.warmupCyclesCount );
out.println( " initial book count : " + testCtx.initialBookCount );
out.println( " initial author count: " + testCtx.initialAuthorCount );
out.println( " verbose : " + testCtx.verbose );
out.println( " measure memory : " + testCtx.measureMemory );
out.println( " measure task time : " + testCtx.measureTaskTime );
out.println( " check query results : " + testCtx.assertQueryResults );
out.println( " check index state : " + testCtx.checkIndexState );
out.println( "" );
out.println( "HIBERNATE SEARCH PROPERTIES" );
Map<String, Object> properties = testCtx.sessionFactory.getProperties();
for ( Entry<String, Object> e : properties.entrySet() ) {
if ( e.getKey().toString().startsWith( "hibernate.search" ) ) {
out.println( " " + e.getKey() + " = " + e.getValue() );
}
}
out.println( "" );
out.println( "VERSIONS" );
out.println( " org.hibernate.search : " + Version.getVersionString() );
out.println( " org.hibernate : " + org.hibernate.Version.getVersionString() );
out.println( "" );
}
内容来源于网络,如有侵权,请联系作者删除!