All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.protostream.sampledomain.Note Maven / Gradle / Ivy

package org.infinispan.protostream.sampledomain;

import org.infinispan.api.annotations.indexing.Basic;
import org.infinispan.api.annotations.indexing.Indexed;
import org.infinispan.protostream.annotations.ProtoField;

/**
 * An annotated entity.
 *
 * @author [email protected]
 * @since 3.0
 */
@Indexed
public class Note {

   private String text;

   private User author;

   @Basic
   @ProtoField(1)
   public String getText() {
      return text;
   }

   public void setText(String text) {
      this.text = text;
   }

   @Basic
   @ProtoField(2)
   public User getAuthor() {
      return author;
   }

   public void setAuthor(User author) {
      this.author = author;
   }

   @Override
   public String toString() {
      return "Note{" +
            "text='" + text + '\'' +
            ", author=" + author +
            '}';
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy