I have a table with below data.
Name Version
---- -------
ABC 1.0
ABC 1.1
BCD 1.0
BCD 1.1
BCD 1.2
and I am trying to write a spring data jpa findBy method to query all names with latest versions. So my result should be
Name Version
---- -------
ABC 1.1
BCD 1.2
I tried
findByTopVersionDesc
findByDistinctTopNameDescVersionDesc
findByFirstNameDescVersionDesc
and other combinations but couldn't make this work. Any suggestions