MyBatis Dynamic SQL is a type-safe Java DSL (Domain-Specific Language) for building SQL queries programmatically instead of writing SQL strings…