This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception while mapping boolean object to char table field

 
dhoni Gibson
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
Android Hibernate jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic