Generates pure domain repository interfaces to define persistence contracts without infrastructure or framework dependencies.
The Domain Repository Port Generator is a specialized tool for developers following Domain-Driven Design (DDD) principles. It automates the creation of clean Java repository interfaces within the domain layer, ensuring that persistence logic is expressed in business terms rather than database operations. By strictly excluding infrastructure-specific types and framework annotations, this skill helps maintain a decoupled architecture where the core domain remains isolated from implementation details like SQL, MyBatis, or Spring Data.
Características Principales
01Enforces strict DDD separation between domain ports and infrastructure adapters.
02Generates framework-agnostic Java interfaces for domain persistence.
03Translates business intent into standardized repository methods like save and find.
04Prevents leakage of SQL concepts, pagination wrappers, and ORM types into the domain.
05Standardizes repository packaging within the Persimmon scaffold structure.
060 GitHub stars
Casos de Uso
01Establishing consistent interface patterns across multiple bounded contexts.
02Refactoring legacy monoliths into clean DDD modules by decoupling data access.
03Defining persistence contracts for new domain aggregates during initial modeling.