package com.unidev.polycms.hateoas.vo;


import org.springframework.hateoas.ResourceSupport;
import org.springframework.hateoas.mvc.ControllerLinkBuilder;

import java.util.ArrayList;
import java.util.List;

public class HateoasPolyIndex extends ResourceSupport {

    private HateoasPoly metadata;
    private List<HateoasPoly> list;

    public static HateoasPolyIndex hateoasPolyIndex() {
        return new HateoasPolyIndex();
    }

    public HateoasPolyIndex metadata(HateoasPoly metadata) {
        this.metadata = metadata;
        return this;
    }

    public HateoasPolyIndex list(List<HateoasPoly> list) {
        this.list = list;
        return this;
    }

    public HateoasPolyIndex add(HateoasPoly hateoasPoly) {
        if (list == null) {
            list = new ArrayList<>();
        }
        list.add(hateoasPoly);
        return this;
    }

    public HateoasPoly getMetadata() {
        return metadata;
    }

    public void setMetadata(HateoasPoly metadata) {
        this.metadata = metadata;
    }

    public List<HateoasPoly> getList() {
        return list;
    }

    public void setList(List<HateoasPoly> list) {
        this.list = list;
    }


}

@@ -90,1090 +90,160 @@
 rt;%0A
-import org.springframework.hateoas.mvc.ControllerLinkBuilder;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class HateoasPolyIndex extends ResourceSupport %7B%0A%0A    private HateoasPoly metadata;%0A    private List%3CHateoasPoly%3E list;%0A%0A    public static HateoasPolyIndex hateoasPolyIndex() %7B%0A        return new HateoasPolyIndex();%0A    %7D%0A%0A    public HateoasPolyIndex metadata(HateoasPoly metadata) %7B%0A        this.metadata = metadata;%0A        return this;%0A    %7D%0A%0A    public HateoasPolyIndex list(List%3CHateoasPoly%3E list) %7B%0A        this.list = list;%0A        return this;%0A    %7D%0A%0A    public HateoasPolyIndex add(HateoasPoly hateoasPoly) %7B%0A        if (list == null) %7B%0A            list = new ArrayList%3C%3E();%0A        %7D%0A        list.add(hateoasPoly);%0A        return this;%0A    %7D%0A%0A    public HateoasPoly getMetadata() %7B%0A        return metadata;%0A    %7D%0A%0A    public void setMetadata(HateoasPoly metadata) %7B%0A        this.metadata = metadata;%0A    %7D%0A%0A    public List%3CHateoasPoly%3E getList() %7B%0A        return list;%0A    %7D%0A%0A    public void setList(List%3CHateoasPoly%3E list) %7B%0A        this.list = list
+%0Apublic class HateoasPolyIndex extends ResourceSupport %7B%0A%0A%0A    public static HateoasPolyIndex hateoasPolyIndex() %7B%0A        return new HateoasPolyIndex()
 ;%0A  

Index VO cleanup