Javatpoint Logo

hibernate configuration files

By: ashish*** On: Sat Jun 18 10:42:50 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
Please can anyone explain me about the hibernate configuration files in detail???

<hibernate-configuration>

<session-factory>
<property name="hbm2ddl.auto">update</property> ------- Please Explain
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> ------- Please explain
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="connection.username">system</property>
<property name="connection.password">oracle</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<mapping resource="employee.hbm.xml"/>
</session-factory>

</hibernate-configuration>
Up0Down

 
1) hibernate.dialect

This property makes Hibernate generate the appropriate SQL for the chosen database.
2) hibernate.connection.driver_class

The JDBC driver class.

3) hibernate.connection.url

The JDBC URL to the database instance.

4) hibernate.connection.username

The database username.

5) hibernate.connection.password

The database password.

6) hibernate.connection.pool_size

Limits the number of connections waiting in the Hibernate database connection pool.

7) hibernate.connection.autocommit

Allows autocommit mode to be used for the JDBC connection.
Image Created0Down

By: [email protected] On: Mon Jun 20 06:09:30 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No