A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Hibernate with Integers
Rachel Kumar
Ranch Hand
Joined: Oct 21, 2008
Posts: 51
posted
Dec 03, 2008 15:40:00
0
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
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Dec 03, 2008 16:05:00
0
You should probably ask this in the
ORM
forum.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Hibernate with Integers
Similar Threads
Actions (struts) dynamic path forwarding
Hibernate: native query to wrap the collection
Hibernate: unexpected queries in parent/child relationship
parsing CDATA error
How to send comands to anoyther program
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter