Javatpoint Logo

91-9990449935

 0120-4256464


hibernate configuration files

By: ashishsingh61292@gmail.com On: Sat Jun 18 10:42:50 IST 2016     0 0 0  0
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>
0

 
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.
0

By: mohammadsaleembasha@gmail.com On: Mon Jun 20 06:09:30 IST 2016 0 0 0 0
Are You Satisfied :0Yes0No


PLEASE REPLY

Please login first to post reply. Login please!