Class NamedBlob


  • @Embeddable
    public class NamedBlob
    extends Object
    You can use this in your entity to represent named blobs, don't forget to use Embedded on you field.
    • Field Detail

      • name

        public String name
        This blob's file name.
      • contents

        public Blob contents
        The blob's contents.
      • mimeType

        public String mimeType
        The blob's mime type.
    • Constructor Detail

      • NamedBlob

        public NamedBlob()
    • Method Detail

      • length

        public long length()
        Returns this Blob's length. Not very useful, except for the backoffice template.
        Returns:
        this Blob's length;