Class StringBasedEntityType

  • All Implemented Interfaces:
    Serializable, Comparable<org.fuin.objects4j.vo.AbstractStringValueObject>, EntityType, org.fuin.objects4j.vo.AsStringCapable, org.fuin.objects4j.vo.ValueObject, org.fuin.objects4j.vo.ValueObjectWithBaseType<String>

    @Immutable
    public final class StringBasedEntityType
    extends org.fuin.objects4j.vo.AbstractStringValueObject
    implements EntityType
    Entity type based on a string with a maximum length of 255 characters.
    See Also:
    Serialized Form
    • Constructor Detail

      • StringBasedEntityType

        public StringBasedEntityType​(@NotEmpty @Size(max=255)
                                     @NotEmpty @Size(max=255) String str)
        Constructor with unique name to use.
        Parameters:
        str - Type name of an aggregate that is unique within all types of the context
    • Method Detail

      • asBaseType

        public final String asBaseType()
        Specified by:
        asBaseType in interface org.fuin.objects4j.vo.ValueObjectWithBaseType<String>