Hi,
I’m trying to add multiple criteria with same property name. For Ex:
Criteria criteria = session.createCriteria(App.class, “app”);
Property applicant = Property.forName(“ID”);
criteria.add(Property.forName(“type”).eq(3));
criteria.add(Property.forName(“type”).eq(4));
Note that the key is the same name “type”. If I do it this way, it won’t work and hibernate would not return any result. Can anyone please help and guide me on what is the propert syntax for this?