package <%=packageRoot%>.vo.crud;

import <%=packageRoot%>.model.<%=name%>;
/**
 * <%=name%> ViewObject
 * @author generate by <%=extra.author%> <%=extra.version%>
 * @date <%=extra.date%>
 * @version 1.0
 */
public class <%=name%>VO extends <%=name%> {
  <%_ entityExtra.query.fields.forEach(function (p,i) { -%>
    private <%= p.type %> <%= p.relationName %>;
  <%_ }); -%>

  <%_ entityExtra.query.fields.forEach(function (p,i) { -%>
    public <%= p.type %> get<%= p.relationAlias %>() {
        return this.<%= p.relationName %>;
    }

    public void set<%= p.relationAlias %>(<%= p.type %> <%= p.relationName %>) {
        this.<%= p.relationName %> = <%= p.relationName %>;
    }
  <%_ }); -%>
}
