Repository navigation
Legacy Patterns
Paulo Gomes da Cruz Junior edited this page Aug 27, 2026
·
1 revision
Uses @RestController and @RequestMapping. Methods return DTOs mapped from entities.
@RestController
@RequestMapping("/api/resource")
public class ResourceController {
private final ResourceService service;
// ...
}DTOs are typically used for data transfer, often with a Dto suffix.
public class ResourceDto {
private String id;
private String name;
// getters and setters
}Business logic is encapsulated in @Service classes. Many services involve searching and code lookups.
@Service
public class ResourceService {
private final ResourceRepository repository;
// ...
}Uses MapStruct for converting between JPA entities and DTOs, located in the mappers package.
This wiki documents NR Waste Plus for users and developers. Verify security and deployment guidance against the current application configuration before applying it elsewhere.
- Report an issue or ask a question in the GitHub repository.
- Follow the Contributing Guidelines to propose an update.
- Read the Code of Conduct.
Collection indexes support human browsing and machine retrieval. Keep both current when adding or moving wiki pages.
NR Waste Plus Wiki | GitHub Repository