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.
The main configurations in this file are :
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
Note: only a member of this blog may post a comment.