After creating a project, right click on it and select New - other - Hibernate - Hibernate Configuration File as shown in the image below.
![]() |
Selecting the Hibernate Configuration File type shows a brief description about it in the Description panel.
After selecting Hibernate Configuration File, press next button to bring up another wizard as shown below.
![]() |
This wizard contains
Now press Next Button to select the data source..
![]() |
This wizard contains
After pressing the Finish button, a configuration file is created and placed under src/java.
The contents of the newly created Configuration file look as shown below:
<hibernate-configuration>
<session-factory name="session1">
<property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
<property name="hibernate.connection.driver_class">org.apache.derby.jdbc.ClientDriver</property>
<property name="hibernate.connection.url">jdbc:derby://localhost:1527/travel</property>
<property name="hibernate.connection.username">travel</property>
<property name="hibernate.connection.password">travel</property>
</session-factory>
</hibernate-configuration>
| Image1.jpg | ![]() |
52401 bytes |
| Image3.jpg | ![]() |
43395 bytes |
| image2.jpg | ![]() |
43080 bytes |