File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate with Integers

 
Rachel Kumar
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to retrieve a set of IDs from Orders table which are all Integers

I want to use this SQL 'like' query
==> Select * from Orders where id like "%67%";

in Hibernate
==>Expression.like(Property, value);

But this does not work, it gives me ClassCastException:

Please can i get help?

Thank You
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should probably ask this in the ORM forum.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic