Introduction

The module’s integration lets you generate different kinds of barcode images for your products.

Business

Development

Core

Entity Definitions

The definitions in this module have id discriminators in the range 120-130.

BarcodeMediaEntityDefinition

The BarcodeMediaEntityDefinition extends the AbstractEntityDefinition:

asciidoctor diagram BarcodeMediaEntityDefinition

The BarcodeMediaEntityDefinition represents the single generated barcode image. Via the respective getter-setter pairs, the following relative information can be retrieved/stored in the database:

Property Description

barcodeText

stores the text the barcode is associated with

product

stores the respective product the barcode refers to

barcodeFormat

stores the format the barcode is in

Spring Data JPA Repositories

BarcodeRepository

The BarcodeRepository extends the BaseEntityRepository and is the corresponding Spring Data JPA repository for the BarcodeMediaEntityDefinition:

asciidoctor diagram BarcodeRepository

Business Services

BarcodeService

The BarcodeService defines several additional helper methods that allow you to:

Description Method

create a new barcode media file with the given content

createBarcodeMediaForContent()

create a new barcode image

createBarcodeImage()

create a new barcode image for a group of products within a catalog

createBarcodesForAllProductsInCatalog()

Facade

Facades

BarcodeFacade

The defined method in the BarcodeFacade lets you create a new barcode image, using the given product code.

There are no views, associated with the module.

Integration

The integration with the Nemesis platform is pretty straight-forward - just add the module in your classpath:

<dependency>
    <groupId>io.nemesis.platform.module</groupId>
    <artifactId>nemesis-module-barcode</artifactId>
</dependency>