Syntax Of Configuration xml
<hibernate-configuration>
<session-factory>
<!-- START Related to the Database -->
<property name="connection.driver_class">Driver Class Name </property>
<property name="connection.url">Connection URL </property>
<property name="connection.user">user </property>
<property name="connection.password">password</property>
<!-- STOP Related to the Database -->
<!-- START : Related to hibernate properties -->
<property name="show_sql">true/false</property>
<property name="dialect">Database dialect class</property>
<property name="hbm2ddl.auto">create/update or what ever</property>
<!-- STOP : Related to hibernate properties -->
<!-- START : mapping -->
<mapping resource="hbm file1 name .xml" / >
<mapping resource="hbm file2 name .xml" / >
<!—STOP mapping -->
</session-factory>
</hibernate-configuration>