Attaches an image to a product, so a product can show a gallery of pictures in the store. The image file itself is an ItemImage, which holds the file name, the content hash and the position in the gallery; this row is only the link from the product to it. A product normally has several, and each ItemImage belongs to one product image, so deleting the link deletes the image with it.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| id | long | Database identifier for this product image link, assigned when it is first saved. |
| images | ItemImage | The image file attached to the product, which carries the file name, content hash and gallery position. Never null, and despite the plural name it is a single image. |
| product | Product | The product the image is shown for. Never null. |
Methods
getId()
Returns: long
Database identifier for this product image link, assigned when it is first saved.
getProduct()
Returns: Product
The product the image is shown for. Never null.
getImages()
Returns: ItemImage
The image file attached to the product, which carries the file name, content hash and gallery position. Never null, and despite the plural name it is a single image.