Here is a parameter set in the XML configuration file, which isused under: <session-factory> tags
<property name= "" > Value </property>
The property commonly used parameters are as follows:
Connection.driver_class Database Connection Driver
Connection.url connection URL for the database
Connection.username Login Name
Connection.password Login Password
Dialect the dialect of the specified database create Create-drop update ...
Hbm2ddl.auto the creation mode of a database table
Showsql whether to display database statements executed
Hibernate.c3p0.max_size Connection Pool Maximum number of connections
Hibernate.c3p0.min_size Connection Pool minimum number of connections
Hibernate.c3p0.timeout gets the time-out of the connection, if more than this time, throws an exception, in milliseconds
hibernate.c3p0.max_statements Specifies the maximum number of statement objects in the connection pool to cache
Hibernate.c3p0.idle_test_period Check the connection pool for idle connections every few seconds, in seconds
Hibernate.c3p0.acquire_increment when the connection in the connection pool is exhausted, c3p0 the number of new connections obtained
Hibernate.c3p0.validate Verify that the connection is available every time