Hibernate property options

Default (overridable) with runtime properties file

(found in /metadata/api/hibernate/hibernate.default.properties)

  1. Connection Properties -->
    hibernate.connection.username=test
    hibernate.connection.password=test
    hibernate.connection.driver_class=com.mysql.jdbc.Driver
    hibernate.connection.url=jdbc:mysql://localhost:3306/openmrs?autoReconnect=true

  1. Hibernate specific connection/debug properties
    hibernate.show_sql=false
    hibernate.format_sql=true
    hibernate.lazy=true
    hibernate.dialect=org.hibernate.dialect.MySQLDialect

  1. Hibernate specific connection pool properties
    hibernate.c3p0.max_size=10
    hibernate.c3p0.min_size=1
    hibernate.c3p0.timeout=100
    hibernate.c3p0.max_statements=100
    hibernate.c3p0.idle_test_period=300
    hibernate.c3p0.acquire_increment=2