• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate No Dialect mapping for JDBC type: -1

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I keep getting this error whenever i run the code below




Any suggestion would be appreciated
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a three-argument setParameter where you can specify the Hibernate type.
 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
solved it by changing

select * from employer where username=?

to

select username from employer where username=?";
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic