I would like to ask if its possible to write Spring JPA method in repo avoiding SQL and @Query. This method have to return list which joined list value is equal to something.
This is class:
class Temp1{
val a: String,
}
This is class that contains above class:
class Temp{
val aSet: Set<Temp1>
}
And so I would like to have method in repo that return every Temp which aSet "a" value is equal to string.
I've got now: findByaSetIn(aSet: List<Temp>)
but it requires list of Temp values instead of more precisly "a" value.
In sql its something similar to:
SELECT * FROM Temp t JOIN Temp1 t1 ON t1.tempID = t.id WHERE t1.a = "abc"