If my table consists of col1, col2, col3 ....
Then if I have to get all the distinct values of col3( decided on runtime)
If my table consists of col1, col2, col3 ....
Then if I have to get all the distinct values of col3( decided on runtime)
DISTINCT
operator.Field
object which will be used in Criteria query builder.findAll()
on your Spring Data repository to retrieve all table records, and then remove duplicate by concrete field in your java code.