I have 3 entities Agent
, Person
and Machine
abstract Agent
Long id
Person extends Agent
String firstName
String lastName
Machine extends Agent
String label
I searched for a solution to query all my agents on given parameter "name"
, which would lookup on firstName
and lastName
of Person
, or on label of Machine
.
Is it possible with a jpql query?
Thanks