Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Consider the following example:
Foo filter = new Foo();
filter.setId(1337);
List<Foo> found = fooDao.findFiltered(filter);
This does not return a singe Foo but all the currently persisted Foo s (effectively working like a findAll())
This is due to ExampleTree internally using {org.hibernate.criterion.Example}} to perform filtered searches: Hibernate's Example ignores identifier properties when filtering.
See also: