wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes org.hibernate.exception.GenericJDBCException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.exception.GenericJDBCException" Watch "org.hibernate.exception.GenericJDBCException" New topic
Author

org.hibernate.exception.GenericJDBCException

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this is my config file


this is contact.java file


this is hbm file


this is main class


but when i run this it gives some ERROR


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Here's the important line from the stack trace:
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
when i making database i make the ID field as a VARCHAR field.Is it wrong?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: org.hibernate.exception.GenericJDBCException
 
Similar Threads
data insert error
it is giving fatal exception
cannot insert record in MS SQLServer 2000
Batch Update Failure
Hibernate exception problem