I have an OrderData class, containing an OrderItemData collection, i would like to find OrderData elements by OrderData.items.itemId.
I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query?
Thanks.
@Entity public class OrderData implements Serializable { ... private OrderItemData[] items = null; ... } public class OrderItemData implements Serializable { ... private String itemId = null; ... }