Class EmbeddedBuilder

  • All Implemented Interfaces:
    Annotation

    public class EmbeddedBuilder
    extends AnnotationBuilder<Embedded>
    implements Embedded
    Creates a pseudo-instance of an @Embedded annotation.
    Since:
    2.1
    Developer note.
    This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
    • Constructor Detail

      • EmbeddedBuilder

        public EmbeddedBuilder()
    • Method Detail

      • builder

        public static EmbeddedBuilder builder()
        Creates a new instance
        Returns:
        the new instance
      • discriminator

        public EmbeddedBuilder discriminator​(String discriminator)
        Sets the discriminator value
        Parameters:
        discriminator - the discriminator to use
        Returns:
        this
      • discriminatorKey

        public EmbeddedBuilder discriminatorKey​(String discriminatorKey)
        Sets the discriminator key
        Parameters:
        discriminatorKey - the discriminator key to use
        Returns:
        this
      • useDiscriminator

        public EmbeddedBuilder useDiscriminator​(boolean use)
        Toggles whether or not to use the discriminator
        Parameters:
        use - true to use the discriminator
        Returns:
        this
      • value

        public String value()
      • useDiscriminator

        public boolean useDiscriminator()
      • discriminatorKey

        public String discriminatorKey()
      • discriminator

        public String discriminator()