Creating entities and notifications from a JPA model

As shown in the developer guide, we have incorporated functionality into the Java client library that allows, based on a JPA data model, to create and update entities based on said definition, in addition to being able to launch notifications to the platform. in a very simple way.

In this way, it is possible to work in a decoupled manner with an external database, and at the same time be able to continue using the platform's capabilities, since it requires the existence of the entities in the system to function.

This library is compatible with versions higher than Spring Boot 3.X.

Native Spring Boot Annotations

This functionality incorporates the following native Spring Boot annotations:

@OPEntity

At the class level, JPA entity serves to identify the JPA entities that will be created and updated on the platform in a transparent manner.

@OPValidateSchema

At the method argument level, it serves to verify that the data of an entity corresponds to the existing JSON schema in the platform. Usage example: before an insert.

 

@OPNotifierOperation(ontology = "Message", operationType = OperationType.INSERT, async = true)

At the method level, it is used to launch notifications to the platform and be able to listen from Flow Engine processes, Business Rules, etc.

Â