posted 11 years ago
I have 4 entities :
The superclass :
The subclasses:
The variables varB, varC, varD represent the same field but with a different name.
I would like to retrieve an object A with my query
“SELECT a FROM A a, Other o JOIN FETCH a.other WHERE o.varOther like ‘…’”
In this case, if the user puts something in the search field “var” I need to add either varB, varC, or varD in the WHERE clause but I don’t know in advance if the type of the subclass is varB, varC or varD, I’m stuckeeeed!
I've got a "unknown state or association field [varB] of class […A]" by example