Class DiscriminatorFunction


  • public abstract class DiscriminatorFunction
    extends Object
    Defines a function to calculate a discriminator value. This function is only applied if the existing value is the annotation default value.
    • Constructor Detail

      • DiscriminatorFunction

        public DiscriminatorFunction()
    • Method Detail

      • className

        public static DiscriminatorFunction className()
        Defines a function to use the class name for the discriminator value
        Returns:
        the function
      • lowerClassName

        public static DiscriminatorFunction lowerClassName()
        Defines a function to use the lowercase class name for the discriminator value
        Returns:
        the function
      • lowerSimpleName

        public static DiscriminatorFunction lowerSimpleName()
        Defines a function to use the lowercase simple class name for the discriminator value
        Returns:
        the function
      • simpleName

        public static DiscriminatorFunction simpleName()
        Defines a function to use the simple class name for the discriminator value
        Returns:
        the function
      • apply

        public final void apply​(EntityModelBuilder builder)
        Applies the function to the given model to determine the discriminator value
        Parameters:
        builder - the builder to evaluate