Spring Boot - Advanced Patterns
How can you implement a dynamic Specification that applies an OR condition between two Specifications
specA and specB, but only if a certain flag is true; otherwise, it applies an AND condition?