📄 hibernate.properties
字号:
hibernate.show_sql=falsehibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProviderhibernate.connection.pool_size=40hibernate.connection.autocommit=truehibernate.connection.shutdown=truehibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider############################## C3P0 Connection Pool##############################hibernate.c3p0.max_size=10hibernate.c3p0.min_size=2hibernate.c3p0.timeout=5000hibernate.c3p0.max_statements=0hibernate.c3p0.idle_test_period=3000hibernate.c3p0.acquire_increment=2#hibernate.c3p0.validate=false## HSQL# driver and database provided by gridspherehibernate.dialect=org.hibernate.dialect.HSQLDialecthibernate.connection.username=sahibernate.connection.password=hibernate.connection.url=jdbc:hsqldb:@GRIDSPHERE_DB@#hibernate.connection.url=jdbc:hsqldb:hsql://localhosthibernate.connection.driver_class=org.hsqldb.jdbcDriver# This will replace the keywords true and false with the literals 1 and 0 in the translated SQLhibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N'## Below are some templates for other databaseconfigurations.## Please make sure you downloaded the correct jdbc driver for# your database. Those are NOT provided with gridsphere!# Also make sure you have the correct database url and username/password### MySQL# download jdbc driver from http://www.mysql.com/downloads/api-jdbc.html#hibernate.dialect org.hibernate.dialect.MySQLDialect#hibernate.connection.driver_class org.gjt.mm.mysql.Driver#hibernate.connection.driver_class com.mysql.jdbc.Driver#hibernate.connection.url jdbc:mysql:///gridsphere#hibernate.connection.username root#hibernate.connection.password## Mckoi SQL# download driver and database from http://mckoi.com/database/index.html#Download#hibernate.dialect org.hibernate.dialect.MckoiDialect#hibernate.connection.driver_class com.mckoi.JDBCDriver#hibernate.connection.url jdbc:mckoi://localhost/#hibernate.connection.username admin_user#hibernate.connection.password aupass00## PostgreSQL# download jdbc driver from http://jdbc.postgresql.org/#hibernate.dialect org.hibernate.dialect.PostgreSQLDialect#hibernate.connection.driver_class org.postgresql.Driver#hibernate.connection.url jdbc:postgresql://localhost/example#hibernate.connection.username postgres#hibernate.connection.password postgres
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -