Hi all,
I have a table named Contact in MYSQL. This table looks like the following:
Column Type
------------- -------------
ID decimal
FIRSTNAME varchar
LASTNAME varchar
EMAIL varchar
There is only a single row of data in the table.
This row contains the following data:
ID = 6,FIRSTNAME=Subhash,LASTNAME=Medhi,
[email protected] Corresponding to this table i have a class Contact.java. It looks like the following:
My hbm.xml file looks like this:
I have a third class in which i am trying to update table Contact. This class named as UpdateExample.java looks like the following:
When i run this class, however, i am getting the following message:
The table is not getting updated.
Could anybody kindly tell me what exactly could the problem be?
Thanks,
Subhash