class EntityUtils {

    public static List<String> getNamesOfIdProperties(final Class<?> clazz) {
        final List<String> idList = new ArrayList<>();

        for (Class<?> c = clazz; c != null; c = c.getSuperclass()) {
            collectIdNamesFromFields(idList, c);
            collectIdNamesFromMethods(idList, c);
        }

        return idList;
    }

    private  EntityUtils();

}