| Author |
Hibernate: wildcard matching using Criteria
|
Choon-Chern Lim
Ranch Hand
Joined: Aug 29, 2005
Posts: 74
|
posted

0
|
I have a DB int column, "myNumber". How do I do wildcard matching using Criteria? Basically, 11 should return 112, 211, etc. I tried the below, but didn't work... and I assume I had to convert the int column to String first, but wasn't sure how to. Thank you.
|
 |
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 16622
|
posted

0
|
Don't need to do that "%" + longObject + "%" should work. Mark
|
Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
|
 |
 |
|
|
subject: Hibernate: wildcard matching using Criteria
|
|
|