Hibernate datasource configure ,the follow:
-
hibernate.connection.driver_class = org.postgresql.Driver
-
hibernate.connection.url = jdbc:postgresql://localhost/mydatabase
-
hibernate.connection.username = myuser
-
hibernate.connection.password = secret
-
hibernate.c3p0.min_size=5
-
hibernate.c3p0.max_size=20
-
hibernate.c3p0.timeout=1800
-
hibernate.c3p0.max_statements=50
-
hibernate.dialect = net.sf.hibernate.dialect.PostgreSQLDialect