This is an optional property. which generates sql query for database based on the dialect we used. Different database have different query. Query may be change as the database changes. to over come this problem dialect come in exist.

<property name=”show_sql”>true</property>

This property displays sql query in console generated by the previous property dialect.
If it is false it doesn’t display the query.

<property name=”hbm2ddl.auto”>update</property>

Update–This Property Used to update the table Rather than create the new table.
If table already exists it update values into table otherwise it creates new table automatically.
Create–This property creates new table.
If the table already exists, it deletes all records in the table and create new table with the given values.
It’s better use update property rather than create to maintain old records.

<mapping resource=”com\\xml\\Student.hbm.xml”/>

Mapping Resource property is used for mapping pojo with table.
Be sure while com\\xml matches your package name else give your package name instead.