package org.infinispan.protostream.sampledomain;

import org.infinispan.protostream.annotations.ProtoField;

/**
 * An annotated entity.
 *
 * @author anistor@redhat.com
 * @since 3.0
 */
public class Note {

   @ProtoField(number = 1)
   private String text;

   @ProtoField(number = 2)
   private User author;

   public String getText() {
      return text;
   }

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

   public User getAuthor() {
      return author;
   }

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

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

@@ -209,31 +209,29 @@
 %0A   
-@ProtoField(number = 1)
+private String text;%0A
 %0A   
@@ -234,35 +234,35 @@
 %0A   private 
-String text
+User author
 ;%0A%0A   @Proto
@@ -280,35 +280,10 @@
 r = 
-2)%0A   private User author;%0A
+1)
 %0A   
@@ -393,32 +393,59 @@
 t = text;%0A   %7D%0A%0A
+   @ProtoField(number = 2)%0A
    public User g

Fix accessibility of properties