Try to search your question here, if you can't find : Ask Any Question Now ?

Spring Data JPA – Get All Unique Values in Column

HomeCategory: stackoverflowSpring Data JPA – Get All Unique Values in Column
Avatarwillson asked 3 months ago

I have a project using Spring Data JPA that consumes data from a table full of addresses. One of the columns of this table is the city. I would like to get a distinct list of cities that are in the table i.e. SELECT DISTINCT city FROM address.

Is there a way to do this using Spring Data JPA?

1 Answers
Best Answer
AvatarArben answered 3 months ago
Your Answer

15 + 19 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com