Marco Janc commented on Improvement HHH-7865

A getter and Setter would be necessary for it I forgot to mention and I am sorry the filter example was wrong:

Map<String, Criteron> filters = new HashMap<String, Criterion>();
filters.put("foo.bar.name", Restrictions.like("name", "peter");
filters.put("foo.test.id", Restrictions.eq("id", 2);
filters.put("bar.value", Restrictions.ne("value", "xy");

If a Getter and Setter are provided this could be reduced to:

Set<Criterion> filters = new HashSet<Criterion>();
filters.add(Restrictions.like("foo.bar.name", "peter");
filters.add(Restrictions.eq("foo.test.id", 2);
filters.add(Restrictions.ne("bar.value", "xy");

Then the tree could be created and the setter could be called on the Restrictions just including the lowest child property.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira