getOrCreateDataObjectMetadata
Returns the cached metadata for kClass, computing it on first request.
The cache is global and never evicted, which is what makes registering a composite type up front enough to keep reflection off the query path entirely. Mapped key names are resolved here, once: a property's PgName if it carries one, otherwise its name converted from camelCase to snake_case.
Return
The metadata, shared with every other caller for the same class.
Parameters
kClass
Its KClass.
Type Parameters
T
The data class to inspect.
Throws
if kClass has no primary constructor.