Tuesday, 10 May 2011

What does hibernate.properties file consist of?

This is a property file that should be placed in application class path. So when the Configuration object is created, hibernate is first initialized. At this moment the application will automatically detect and read this hibernate.properties file.


 hibernate.connection.datasource = java:/comp/env/jdbc/AuctionDB
 hibernate.transaction.factory_class = net.sf.hibernate.transaction.JTATransactionFactory
 hibernate.transaction.manager_lookup_class = net.sf.hibernate.transaction.JBossTransactionManagerLookup
 hibernate.dialect = net.sf.hibernate.dialect.PostgreSQLDialect

No comments:

Post a Comment