Interface ImageOwner<O extends BaseEntity,​I extends OwnedImage<O>>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      I getImage()
      Either the single image or a de-normalized reference to the first image
      default List<I> getImages()
      Either all images or a collection with the single image
      void setImage​(I image)
      Either the single image or a de-normalized reference to the first image
      default void setImages​(List<I> images)
      Assigns either all images or the first image if the owner has a single one
    • Method Detail

      • getImage

        I getImage()
        Either the single image or a de-normalized reference to the first image
      • getImages

        default List<I> getImages()
        Either all images or a collection with the single image
      • setImage

        void setImage​(I image)
        Either the single image or a de-normalized reference to the first image
      • setImages

        default void setImages​(List<I> images)
        Assigns either all images or the first image if the owner has a single one