If the given type is a class, it will uses the class fields (includes all the fields in parent classes) to generate the schema. All fields, no matter what access it is would be included, except transient or synthetic one.
If the given type is an interface, it will uses all getter methods (methods that prefix with "get" or "is", followed by a name with no arguments) to generate fields for the record schema. E.g. for the method {@code String getFirstName()}, a field name "firstName" of type String would be generated.
|
|
|
|
|
|
|
|
|
|
|
|