AntiPattern
Generated-Helper Query Semantics
framework-generated-query-semantic-mismatch
Spring’s generated helper behavior—like pageable count queries reusing the original sort—can produce semantically invalid database queries or wrong results, because the framework assumptions don’t match your access pattern constraints.