Get result form criteria as a map (key, value)
===

 I joined two tables using `criteria` and I want to get result as a map (key, value). How can I do this?

    ProjectionList proList = Projections.projectionList();;
    proList.add(Projections.property("regon"));
    proList.add(Projections.property("address.location"));
    Criteria criteria = currentSession().createCriteria(Company.class);
    criteria.createCriteria("user", "user");
    criteria.createCriteria("user.addresses", "address");
    criteria.setProjection(proList);
    List<Object> companies = criteria.list();