Unable to add multiple criteria of same property name to the query

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”);


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?