class FunctionJdbcRepository extends JdbcRepository {

	public FunctionEntity findById(FunctionEntity entity) {
		List<String> list = allIdentitiferFields.get(entity.getClass().getSimpleName());

		Map<String, Object> paramValues = new HashMap<>();

		for (String s : list) {
			paramValues.put(s, getValue(getField(entity, s), entity));
		}

		List<FunctionEntity> functions = namedParameterJdbcTemplate.query(
				getByIdQuery.get(entity.getClass().getSimpleName()).toString(), paramValues,
				new BeanPropertyRowMapper(FunctionEntity.class));
		if (functions.isEmpty()) {
			return null;
		} else {
			return functions.get(0);
		}

	}

	public  FunctionJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate);

}