DiscriminatorColumn
annotation in package klyn.data.mapping

    public annotation DiscriminatorColumn(
    name as String = "DTYPE",
    discriminatorType as DiscriminatorType = DiscriminatorType.STRING,
    length as Int = 31
    )

DiscriminatorColumn

Configures the discriminator used to materialize an entity subtype.

Document providers bind the same logical discriminator through their own field or path metadata.

Example

    @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
    @DiscriminatorColumn(name="paymentType", length=24)
    public abstract class Payment:
    pass