I'm telling you that I was able to get the highs with and without inheritance automated, but now I have the same problem to edit, it happens I want to first edit the methods of the superclass and then the superclass But I do not succeed:
ParamBuilder.java
private LinkedList<Object>loadMethods(IPersistente ip) throws Exception{
        LinkedList<Method> m = new LinkedList();        
        Child s = ip.getClass().getAnnotation(Child.class);
        Method[] me = null; 
        if(s != null && ip.getId() == 0){
            me = ip.getClass().getSuperclass().getDeclaredMethods();
        } else {
            // only this if is left so that the modifications with inheritances are automated, xq with the highs I could
            if(s != null){
                me = ip.getClass().getSuperclass().getDeclaredMethods();
            } else {
                me = ip.getClass().getDeclaredMethods();
            }     
        }
        for(Method campo : me){            
            if (campo.getName().startsWith("get") && !campo.getName().startsWith("getClass")) {
                Method metodo = campo;
                if(metodo.getParameterCount() == 0) {
                    if(metodo.isAnnotationPresent(Sort.class)){
                        m.add(metodo); 
                    }
                }
            }            
        }
        if(ip instanceof IDependiente && !ip.check()){
            Collections.sort(m, new SortDesc());
        } else {
            Collections.sort(m, new SortAsc());
        }        
        return load(ip, m);
    } 
I await your responses and greetings.
