Hi All,
I tried to use example criteria. For discussion sake, Lets have a entity Person
class Person
int id;
int age;
String name;
// has respective getters and setters.
If I use example query with an instance of Person with age set in it. I could fetch the list of Person with the same age. But in the case of an instance of the Person with name set in it, Hibernate does not returns a empty list. If I have set both age and name, again it works fine.
please let me know, If example criteria in Hibernate cant be used with setting a string field alone or any other non primitive type alone.
thanks
Arjun.