I have a trouble driving me crazy.
I have 2 objects:
Enterprises and Segments and a one-to-many relationship between them.
I have a primary key from a Segment (14) and need in just one step get all Entreprises with this segment.
I try a lot of thinks buy can not do that.
I need to filter some another properties of enterprise too.
I have now:
"select Enterprise from Enterprise in class adama.supplier.Enterprise " +
"where Enterprise.deleted != ? and ? in Enterprise.segments " +
"order by name",
{Boolean, Long}
segments is a List
Please, I really need some help.
|