File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
infinispan-client-quickstart/src/main/java/org/acme/infinispan/client Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 11package org .acme .infinispan .client ;
22
3- import org .infinispan .protostream .annotations .ProtoField ;
3+ import org .infinispan .protostream .annotations .Proto ;
44
5- public class Greeting {
6- @ ProtoField (number = 1 )
7- public String name ;
8-
9- @ ProtoField (number = 2 )
10- public String message ;
11- }
5+ @ Proto
6+ public record Greeting (String name , String message ) { }
Original file line number Diff line number Diff line change 11package org .acme .infinispan .client ;
22
33import org .infinispan .protostream .GeneratedSchema ;
4- import org .infinispan .protostream .annotations .AutoProtoSchemaBuilder ;
4+ import org .infinispan .protostream .annotations .ProtoSchema ;
55
6- @ AutoProtoSchemaBuilder (includeClasses = Greeting .class )
6+ @ ProtoSchema (includeClasses = Greeting .class )
77public interface GreetingSchema extends GeneratedSchema {
88}
You can’t perform that action at this time.
0 commit comments