This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes exception while mapping boolean object to char table field 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 "exception while mapping boolean object to char table field " Watch "exception while mapping boolean object to char table field " New topic
Author

exception while mapping boolean object to char table field

dhoni Gibson
Ranch Hand

Joined: Feb 10, 2011
Posts: 30
Hi

i am getting exception during object mapping in hibernate.

here is the scenario

i have table with char(1) column , am trying to map to boolean(wrapper) object while doing so i am getting below exception




my hbm file content

onlineBuy is the boolean method
Anantha Sharma
Ranch Hand

Joined: Sep 01, 2010
Posts: 43

please check your DB table schema, the column in question isn't available to be selected, thats the problem here...

even though you've mapped the column (ONLINEBUY) in hibernate, the table doesn't contain a column with that name (or you might have misspelled it..
 
Don't get me started about those stupid light bulbs.
 
subject: exception while mapping boolean object to char table field
 
Similar Threads
org.springframework.orm.hibernate3.HibernateJdbcException:
org.springframework.orm.hibernate3.HibernateSystemException: could not set a field value by reflecti
what is this error
unique key hibernate exception
I have got this error when i try to run my spring web project.... what is this error?