The toSpecification method in the filter DTO's is not good, it is using some parts of the infrastructure layer and those classes used there can be hidden by the repository since it should provide support for other classes that want's to query domain objects/entities
We should move it from there and put in a better place to have a good encapsulation of this query behavior.
The
toSpecification
method in the filter DTO's is not good, it is using some parts of the infrastructure layer and those classes used there can be hidden by the repository since it should provide support for other classes that want's to query domain objects/entitiesWe should move it from there and put in a better place to have a good encapsulation of this query behavior.