class DefaultUserDao implements UserDao {

	@Override
	public User getUserByLogin(final String login) {
		String querySql = QUERY;
		Map<String, Object> parameters = Collections.<String, Object>singletonMap("login", login);
		Query<User> query = new Query<User>(User.class, querySql, parameters);
		return persistenceManager.getSingleResult(query);
	}

}