<version>4.3.0.Final</version>
</dependency>
Para você saber se está funcionando realmente será mostrado um log assim:
23:59:38,817 INFO Version:66 - HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
23:59:38,832 INFO Version:54 - HHH000412: Hibernate Core {4.3.0.Final}
23:59:38,848 INFO Environment:224 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.connection.password=****, hibernate.c3p0.acquire_increment=1, hibernate.jdbc.batch_versioned_data=true, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.cache.region_prefix=hibernate.test, hibernate.c3p0.idle_test_period=1800, hibernate.proxool.pool_alias=pool1, hibernate.c3p0.max_statements=0, hibernate.bytecode.use_reflection_optimizer=false, hibernate.c3p0.validate=false, hibernate.c3p0.timeout=3600, hibernate.default_batch_fetch_size=8, hibernate.c3p0.idle_test_period"=15, hibernate.temp.use_jdbc_metadata_defaults=false, hibernate.generate_statistics=true, hibernate.c3p0.maxPoolSize=15, hibernate.c3p0.acquireRetryAttempts=3, hibernate.jdbc.use_streams_for_binary=true, hibernate.max_fetch_depth=2, <!--=Número de segundos que conexões acima do limite minPoolSize deverão permanecer , hibernate.c3p0.min_size=5, hibernate.format_sql=true, hibernate.connection.username=postgres, hibernate.connection.isolation=4, hibernate.connection.driver_class=org.postgresql.Driver, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.c3p0.max_size=600, hibernate.connection.provider_class=org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider, hibernate.c3p0.minPoolSize=3 , hibernate.order_updates=true, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.connection.url=jdbc:postgresql://localhost/postgres}
23:59:38,848 INFO Environment:257 - HHH000407: Using
java.io streams to persist binary types
23:59:38,848 INFO Environment:346 - HHH000021: Bytecode provider name : javassist
23:59:39,035 INFO ConnectionProviderInitiator:190 - HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
23:59:39,066 INFO C3P0ConnectionProvider:133 - HHH010002: C3P0 using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost/postgres
23:59:39,066 INFO C3P0ConnectionProvider:134 - HHH000046: Connection properties: {user=postgres, password=****}
23:59:39,066 INFO C3P0ConnectionProvider:137 - HHH000006: Autocommit mode: false
23:59:39,066 WARN C3P0ConnectionProvider:252 - HHH010001: Both hibernate-style property 'hibernate.c3p0.min_size' and c3p0-style property 'hibernate.c3p0.minPoolSize' have been set in Hibernate properties. Hibernate-style property 'hibernate.c3p0.min_size' will be used and c3p0-style property 'hibernate.c3p0.minPoolSize' will be ignored!
23:59:39,082 WARN C3P0ConnectionProvider:252 - HHH010001: Both hibernate-style property 'hibernate.c3p0.max_size' and c3p0-style property 'hibernate.c3p0.maxPoolSize' have been set in Hibernate properties. Hibernate-style property 'hibernate.c3p0.max_size' will be used and c3p0-style property 'hibernate.c3p0.maxPoolSize' will be ignored!
23:59:39,550 INFO C3P0ConnectionProvider:222 - HHH000149: JDBC isolation level: REPEATABLE_READ
23:59:39,565 INFO Dialect:145 - HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
23:59:39,582 INFO LobCreatorBuilder:88 - HHH000422: Disabling contextual LOB creation as connection was null
23:59:39,832 INFO TransactionFactoryInitiator:62 - HHH000399: Using default transaction strategy (direct JDBC transactions)
23:59:39,832 INFO ASTQueryTranslatorFactory:47 - HHH000397: Using ASTQueryTranslatorFactory
Pronto resolvido...