The largest Interview Solution Library on the web

Hibernate Tutorials/
« Previous | 1 | 2 | 3 | Next »
Following is the list of important properties you would require to configure for a databases in a standalone situation:

S.N.Properties and Description
1hibernate.dialectThis property makes Hibernate generate the appropriate SQL for the chosen database.
2hibernate.connection.driver_classThe JDBC driver class.
3hibernate.connection.urlThe JDBC URL to the database instance.
4hibernate.connection.usernameThe database username.
5hibernate.connection.passwordThe database password.
6hibernate.connection.pool_sizeLimits the number of connections waiting in the Hibernate database connection pool.
7hibernate.connection.autocommitAllows autocommit mode to be used for the JDBC connection.

If you are using a database along with an application server and JNDI then you would have to configure the following properties:

S.N.Properties and Description
1hibernate.connection.datasourceThe JNDI name defined in the application server context you are using for the application.
2hibernate.jndi.classThe InitialContext class for JNDI.
3hibernate.jndi.Passes any JNDI property you like to the JNDI InitialContext.
4hibernate.jndi.urlProvides the URL for JNDI.
5hibernate.connection.usernameThe database username.
6hibernate.connection.passwordThe database password.
« Previous | 1 | 2 | 3 | Next »

copyright © 2014 - all rights riserved by