I'm reading a lot about hexagonal architecture, but in all the examples that i'm looking, all folders and class ubication are different, and this looks a bit confusing to me.
I've done a simple spring boot application with below folder structure. Adapter folder contains implementation of repository interface and the rest controller.
In domain folder, I've model, which is a simple POJO, ports, that are interfaces of service class which contains all the business logic of Product, and the interface of repository which exposes the methods to be implemented in repository.
In another folder I've service implementation, and as i told before, with the business logic of product.
Is this a correct way to implement an hexagonal architecture for a simple use case? If not, why? Where i should put every class and why? This is what it's not clear...
Much appreciate!
