Skip to content

Instantly share code, notes, and snippets.

@awsp
Created December 5, 2025 18:08
Show Gist options
  • Select an option

  • Save awsp/d1244bf354920b091d2c9dd043cbb9c1 to your computer and use it in GitHub Desktop.

Select an option

Save awsp/d1244bf354920b091d2c9dd043cbb9c1 to your computer and use it in GitHub Desktop.
infra
app/
common/
config/ # Global Spring configs (security, web, db, CORS, Jackson)
mapper/ # Cross-cutting mappers (e.g. enums, date/time converters)
utils/ # General-purpose utilities (string helpers, constants)
events/ # Application-wide events and listeners
converters/ # Generic converters (String ↔ JsonNode, Json ↔ String)
pagination/ # Shared pagination helpers, PageResponse DTOs
relational/ # Shared relational abstractions (base entities, auditing)
web/
exception/ # Global exception handlers, error responses
dto/
request/ # Shared request DTOs
response/ # Shared response DTOs
featureA/
domain/
model/ # Core domain entities (JPA, aggregates)
converter/ # Entity ↔ projection converters
projection/ # Read-only views, query projections
application/
services/ # Business services for featureA
dto/
request/ # Feature-specific request DTOs
response/ # Feature-specific response DTOs
mapper/ # Feature-specific mappers (entity ↔ dto)
events/ # Feature-specific domain events
infrastructure/
repo/ # Repositories (Spring Data, custom queries)
config/ # Feature-specific config (properties, beans)
web/
endpoints/ # Vaadin Hilla endpoints (REST/GraphQL style)
views/ # Vaadin UI views/components for featureA
featureB/
domain/
model/
converter/
projection/
application/
services/
dto/
request/
response/
mapper/
events/
infrastructure/
repo/
config/
web/
endpoints/
views/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment