@@ -0,0 +1,1625 @@
+package mil.dds.anet.beans;%0A%0Aimport io.leangen.graphql.annotations.GraphQLIgnore;%0Aimport io.leangen.graphql.annotations.GraphQLQuery;%0Aimport io.leangen.graphql.annotations.GraphQLRootContext;%0A%0Aimport java.util.Map;%0Aimport java.util.Objects;%0Aimport java.util.concurrent.CompletableFuture;%0A%0Aimport com.fasterxml.jackson.annotation.JsonSetter;%0A%0Aimport mil.dds.anet.utils.DaoUtils;%0Aimport mil.dds.anet.utils.Utils;%0Aimport mil.dds.anet.views.AbstractAnetBean;%0Aimport mil.dds.anet.views.IdFetcher;%0A%0Apublic class Note extends AbstractAnetBean %7B%0A%0A%09private String text;%0A%09private Person author;%0A%0A%09@GraphQLQuery(name=%22text%22)%0A%09public String getText() %7B%0A%09%09return text;%0A%09%7D%0A%0A%09public void setText(String text) %7B%0A%09%09this.text = Utils.trimStringReturnNull(text);%0A%09%7D%0A%0A%09@GraphQLQuery(name=%22author%22)%0A%09public CompletableFuture%3CPerson%3E loadAuthor(@GraphQLRootContext Map%3CString, Object%3E context) %7B%0A%09%09return new IdFetcher%3CPerson%3E().load(context, %22people%22, author)%0A%09%09%09%09.thenApply(o -%3E %7B author = o; return o; %7D);%0A%09%7D%0A%0A%09@JsonSetter(%22author%22)%0A%09public void setAuthor(Person author) %7B%0A%09%09this.author = author;%0A%09%7D%0A%0A%09@GraphQLIgnore%0A%09public Person getAuthor() %7B%0A%09%09return author;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object o) %7B%0A%09%09if (o == null %7C%7C o.getClass() != this.getClass()) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09final Note n = (Note) o;%0A%09%09return Objects.equals(n.getUuid(), uuid)%0A%09%09%09%09&& uuidEqual(n.getAuthor(), author)%0A%09%09%09%09&& Objects.equals(n.getText(), text);%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09return Objects.hash(uuid, text);%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return String.format(%22%5Buuid:%25s, author:%25s%5D%22, uuid, DaoUtils.getUuid(author));%0A%09%7D%0A%0A%7D%0A

Add the basic Note object