Execute backward query with JPA
I have a query function in my repository:
fun findStockholderIndividualByPersonFirstNameContainsOrPersonLastNameContains(firstName: String?, lastName: String?): MutableList?
It works to some extent.
However StockholderIndividual is a part of a class called Register which has attribute called reference
I want to include in the query a way to say WHERE Register reference = 'XXXXX'
Is this possible with JPA?