public enum GetterStyle extends Enum<GetterStyle>
Note that introspection always starts by looking for getters first: no-arg, non-void methods that follow the configured style. Then the mapper will try to find a matching field (which is not required), and, if the entity is mutable, a setter.
|Enum Constant and Description|
"Fluent" style: any name will match (as long as the no-arg, not-void rule also holds), and is considered to be the property name without any prefix.
"JavaBeans" style: the method name must start with "get", or "is" for boolean properties.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final GetterStyle JAVABEANS
int getFoo() => foo.
public static final GetterStyle FLUENT
int foo() => foo.
Note that this is the convention used in compiled Scala case classes. Whenever the mapper
processes a type that implements
scala.Product, it will switch to this style by
public static GetterStyle values()
for (GetterStyle c : GetterStyle.values()) System.out.println(c);
public static GetterStyle valueOf(String name)
Copyright © 2017–2021. All rights reserved.