Onion architecture has a core which is composed by domain model, domain services and application services:
I'm in doubt about those two service layers, domain services and application services.
I've been reading that they're related to DDD but I'm not familiar with DDD myself.
I'm not asking for the relationship, just an explanation of what those two layers do, and if possible a simple example in Java.
I've read that Domain Services are services used by the domain model and Application Services are services made accessible to the outer layers. Is this correct?
So a Repository would be a Domain Service and Application Services are related to the Use Cases of the application.
All of that is still unclear to me.