DynamicDtoSerializationStrategy
Serialization strategy for classes annotated with @DynamicallyMappable.
Note:
Explicit use of a class with PgTyped forces treating the class as @PgComposite/@PgEnum. Explicit use of DynamicDto forces treating the class as @DynamicallyMappable.
Provided they have such annotations.
Entries
NEVER automatically converts to dynamic_dto. Usage requires explicit wrapping in DynamicDto.from(). Maximum safety and explicitness.
Automatically converts to dynamic_dto, but ONLY when there is no ambiguity (i.e., the class does NOT have @PgComposite or @PgEnum annotations). In case of conflict, @PgComposite always wins.
Aggressively converts to dynamic_dto if the class has the @DynamicallyMappable annotation. This strategy has higher priority than @PgComposite and @PgEnum in case of conflict.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.