0% found this document useful (0 votes)
41 views1 page

Hex Folder Structure

This document outlines the structure of a Java codebase for a customer relationship management (CRM) application. The code is organized using a hexagonal architecture pattern with the core domain and application services at the center separated from adapters. The core contains entities, logic and use cases while adapters provide interfaces to external resources like controllers and repositories. Tests mirror the package structure for each component.

Uploaded by

Backend Dev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Hex Folder Structure

This document outlines the structure of a Java codebase for a customer relationship management (CRM) application. The code is organized using a hexagonal architecture pattern with the core domain and application services at the center separated from adapters. The core contains entities, logic and use cases while adapters provide interfaces to external resources like controllers and repositories. Tests mirror the package structure for each component.

Uploaded by

Backend Dev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

src

├── main
| ├── java
| | └── com
| | └── yourcompany
| | └── crm
| | ├── core
| | | ├── application (Application services and use cases)
| | | ├── domain (Domain entities and business logic)
| | | └── ...
| | ├── primaryadapter (Primary Adapters, e.g., Controllers)
| | | ├── controller
| | | └── ...
| | ├── secondaryadapter (Secondary Adapters, e.g., Repository)
| | | ├── repository
| | | └── ...
| | └── [Link] (Main application class)
| └── resources
| ├── [Link] (Application configuration)
| └── ...
└── test (Unit and Integration tests)
└── java
└── com
└── yourcompany
└── crm
├── core
| ├── application (Tests for application services)
| ├── domain (Tests for domain entities and logic)
| └── ...
├── primaryadapter (Tests for primary adapters)
| └── controller
| └── ...
└── secondaryadapter (Tests for secondary adapters)
└── repository
└── ...

You might also like