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

Link copied to clipboard

NEVER automatically converts to dynamic_dto. Usage requires explicit wrapping in DynamicDto.from(). Maximum safety and explicitness.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.