How is the back-end code of an ORMIT™-OpenJava Oracle Forms migration structured? Layers, request flow and transactions.
The back-end code is generated from your forms and separated into layers: controllers, services, repositories and models. The data models and validation models are also generated automatically for your forms. A typical request flows like this:
- The user acts in the screen.
- The front end sends an HTTP request (JSON, with an Authorization header) to the REST API.
- In the Java back end, a Spring Boot
@RestControllerreceives it, the@Servicelayer applies the business rules, and the@Repositorylayer reads or writes the database (DAO via JdbcTemplate).
Commits and rollbacks are managed by the back end and the Oracle database. With the 100% Node.js back end, the code, data models and validation models are generated from your forms in the same way.