aspose file tools
The moose likes Object Relational Mapping and the fly likes Hibernate No Dialect mapping for JDBC type: -1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate No Dialect mapping for JDBC type: -1" Watch "Hibernate No Dialect mapping for JDBC type: -1" New topic
Author

Hibernate No Dialect mapping for JDBC type: -1

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I keep getting this error whenever i run the code below




Any suggestion would be appreciated
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
There is a three-argument setParameter where you can specify the Hibernate type.
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
solved it by changing

select * from employer where username=?

to

select username from employer where username=?";
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate No Dialect mapping for JDBC type: -1
 
Similar Threads
DATABASE OBJECT-- URGENT URGENT
Displaytag : Not getting to the same page after modifying record
Undefined label causing compile error
nullpointerexception
Calling Stored Procedure from Hibernate mapping file