public User getUserByLogin(String login){
		Criteria req = this.session.createCriteria(User.class)
				.setMaxResults(1)
				.add(Restrictions.eq("login", login)) ;
		@SuppressWarnings("unchecked")
		List<User> users = (List<User>)req.list();
		
		return users.isEmpty() ?  null : users.get(0);
	}