Skip to content

Legacy Conventions

Paulo Gomes da Cruz Junior edited this page Aug 27, 2026 · 1 revision

Legacy Component — Conventions

Package Structure

Follows a structured layered approach under ca.bc.gov.nrs.hrs:

  • configuration/: Application configurations.
  • controller/: REST controllers.
  • service/: Domain services (often sub-packaged by domain like search, codes).
  • repository/: Data access layer.
  • entity/: JPA entities.
  • dto/: Data transfer objects.
  • mappers/: MapStruct mappers.
  • exception/: Application-specific exceptions.

Naming Conventions

  • Controllers: Suffix with Controller.
  • Services: Suffix with Service.
  • Repositories: Suffix with Repository.
  • DTOs: Suffix with Dto.
  • Mappers: Suffix with Mapper.

Coding Style

  • Heavy use of MapStruct for object mapping.
  • Standard Spring Boot 3 conventions.

Waste Plus Wiki

Home

Architecture

Codes

Decisions

Knowledge Base

Development

Changes

Clone this wiki locally