Introduction

Business

Development

Core

Entity Definitions

asciidoctor diagram ProductReferencesWidgetEntityDefinition

Spring Data JPA Repositories

ProductReferencesWidgetRepository

The ProductReferencesWidgetRepository extends the BaseEntityRepository and is the corresponding Spring Data JPA repository for the ProductReferencesWidgetEntityDefinition:

asciidoctor diagram ProductReferencesWidgetRepository

Facade

MapperFactoryConfigurers

ProductReferencesWidgetMapperFactoryConfigurer

The ProductReferencesWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the ProductReferencesWidgetEntityDefinition to ProductReferencesWidgetDtoDefinition:

asciidoctor diagram ProductReferencesWidgetMapperFactoryConfigurer

The conversion is done via the byDeafult() method.

More about the mapping configurations you may read in the respective Orika guide.

Dto definitions

ProductReferencesWidgetDtoDefinition

The ProductReferencesWidgetDtoDefinition extends the WidgetDtoDefinition, going further to the AbstractEntityDtoDefinition:

asciidoctor diagram ProductReferencesWidgetDtoDefinition

JavaScript files

There is also some custom JavaScript added, in the META-INF/resources/resources/productreferences/js directory.

Integration

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

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