WrappedCollection

data class WrappedCollection(val elementStrategy: MappingStrategy, val wrapperObjectFqn: String, val useUnwrap: Boolean = false) : MappingStrategy

Collection mapping whose container shell is handled by a @CollectionWrapper object, in either direction. Element conversion stays on the normal seam rails: forward (wrap): WrapperObject.wrap(<element seam chain>) reverse (unwrap): WrapperObject.unwrap(source).<element seam chain>

Parameters

elementStrategy

how to map each element

wrapperObjectFqn

fully-qualified name of the wrapper object (e.g. com.example.PersistentListWrapper)

useUnwrap

true when the SOURCE field is the registered wrapped type and the target is a plain collection — the generator calls unwrap() and feeds the seams.

Constructors

Link copied to clipboard
constructor(elementStrategy: MappingStrategy, wrapperObjectFqn: String, useUnwrap: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard