* @param hotel hotel you are interested in
* @return list of typologies or empty list
*/
@Transactional(readOnly = true, propagation = Propagation.REQUIRED)
public List<Typology> getTypolgyByBeds(int numberOfBeds, Structure structure) {
IhDAO dao = super.getDAO();
Map<String, Object> toSearch = new HashMap<String, Object>();
toSearch.put("beds", new Integer(numberOfBeds));
toSearch.put("structure", structure);
List<Typology> typologies = (List<Typology>) dao.search(toSearch);
return typologies;
}