• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate with Integers

 
Rachel Kumar
Ranch Hand
Posts: 51
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should probably ask this in the ORM forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic