In this lesson we will write the java class and add necessary code in the contact.hbm.xml file.
Create POJO class:
Here is the code of our java file (Insurance.java), which we will map to the insurance table.
Adding mappings into contact.hbm.xml file
Add the following code into contact.hbm.xml file.
<class name="roseindia.tutorial.hibernate. Insurance" table="insurance"> <id name="lngInsuranceI
Now we have created the POJO class and necessary mapping into contact.hbm.xml file.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.