
org.infinispan.protostream.sampledomain.Note Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-sample-domain-implementation Show documentation
Show all versions of proto-sample-domain-implementation Show documentation
A ProtoStream sample domain implementation can be used for tests among different Infinispan module
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 - 2025 Weber Informatics LLC | Privacy Policy