hibernate.properties 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #parti comuni
  2. #hibernate.connection.driver_class=com.mysql.jdbc.Driver
  3. #hibernate.connection.driver_class=net.sourceforge.jtds.jdbc.Driver
  4. #hibernate.dialect=org.hibernate.dialect.FirebirdDialect
  5. #hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
  6. #hibernate.dialect=org.hibernate.dialect.MySQLDialect
  7. #minPoolSize=10
  8. #maxPoolSize=100
  9. timeout=1
  10. hibernate.show_sql=false
  11. hibernate.format_sql=true
  12. hibernate.connection.release_mode=after_transaction
  13. #hibernate.hbm2ddl.auto=update
  14. #hibernate.columnLabelForName=true
  15. #hibernate.connection.provider_class=org.hibernate.c3p0.internal.C3P0ConnectionProvider
  16. #hibernate.c3p0.min_size=10
  17. #hibernate.c3p0.max_size=50
  18. #hibernate.c3p0.timeout=100
  19. #hibernate.c3p0.idle_test_period=50
  20. #hibernate.c3p0.testConnectionOnCheckout=true
  21. #hibernate.c3p0.max_statements=60
  22. #hibernate.c3p0.validate=true
  23. #hibernate.c3p0.preferredTestQuery=SELECT 1
  24. hibernate.cache.use_query_cache=false
  25. hibernate.cache.use_second_level_cache=false
  26. hibernate.connection.aggressive_release=true
  27. hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
  28. hibernate.current_session_context_class=thread
  29. hibernate.connection.isolation=1
  30. #2
  31. #hibernate.connection.provider_class=org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  32. #pool DBCP
  33. #hibernate.dbcp.defaultAutoCommit=false
  34. #hibernate.dbcp.minEvictableIdleTimeMillis=30000
  35. ##Numero massimo di connessioni utilizzabili
  36. #hibernate.dbcp.maxActive=100
  37. #Tempo massimo di inattivita per le connessioni nel pool (espressa in ms).
  38. hibernate.dbcp.maxWait=60000
  39. #Numero massimo di connessioni inattive
  40. #hibernate.dbcp.maxIdle=5
  41. #Cosa fare in caso di esaurimento di connessioni:
  42. #0:Fallisce, genera eccezione
  43. #1:Attendi fin tanto che non se ne libera una
  44. #2:Incrementa il pool
  45. #hibernate.dbcp.whenExhaustedAction=0
  46. #Convalida la connessione prelevata dal pool
  47. #hibernate.dbcp.testOnBorrow=false
  48. #Convalida la connessione prima di restituirla al pool
  49. hibernate.dbcp.testOnReturn=true
  50. #Query da eseguire per effettuare la validazione delle connessioni (testOnBorrow, testOnReturn)
  51. #hibernate.dbcp.validationQuery=SELECT 1
  52. #Maximum number of checked-out statements
  53. #hibernate.dbcp.ps.maxActive=100
  54. #Maximum number of idle statements
  55. #hibernate.dbcp.ps.maxIdle=4
  56. #Maximum idle time for statements (in ms)
  57. #hibernate.dbcp.ps.maxWait=1000
  58. #Action to take in case of an exhausted statement pool. Set to 0 to fail,
  59. # 1 to block until a statement is made available, or 2 to grow)
  60. #hibernate.dbcp.ps.whenExhaustedAction=0
  61. #hibernate.connection.characterEncoding=ISO8859_2
  62. #hibernate.connection.charSet=ISO8859_2
  63. #Deploy
  64. #hibernate.connection.driver_class=net.sourceforge.jtds.jdbc.Driver
  65. #hibernate.connection.url=jdbc:jtds:sqlserver://localhost:1433/SicuraSQL_Findomestic_Web
  66. #hibernate.connection.url=jdbc:jtds:sqlserver://localhost:1433/SicuraSQL_Findomestic;instance=MSSQLSERVER14
  67. #hibernate.connection.username=sa
  68. #hibernate.connection.password=kranio-10
  69. hibernate.connection.datasource=java:comp/env/jdbc/sicura
  70. hibernate.proc.param_null_passing=true
  71. hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect