Hi all,
I have one class "Element" and 2
joined classes "System" and "Frame" that are, obviously, specializations.
Thus, I try to execute a simple select, like this:
Code:
from Element e where e.class = System
But it does not return nothing!
My model is:
Code:
+-----------------+
| |
|n elements |n permissions
Element Permission
A
|
| <<joined>>
|
+-----+-----+
| |
System Frame
|1 system |n frames
| |
+------------+
I need to select all elements that are "systems" from association between Permission and Element.
I try this, but it does not function:
Code:
select e from Permission p join p.elements e where e.class = System
Thanks for all.