Originally posted by subhashchandra medhiassam:
There's nothing more in the message.
This would be because you log the message the exception returns and not the stack trace. Print the stack trace and you will get more information. Hibernate
always logs the underlying SQLException, which in turn
always reports the database error message.
what should be the type of column id of Contact table
Decimal is usually used to store flaoting point numbers and floating point numbers are poor choices for surrogate keys. MySQL provides a variety of integer data types, I'd use one of them.