JPA: Query an embeddable List inside an entity
问题 I am trying to "extract" Embeddable classes based on some criterias from a list in an Entity. Either with the help of JPQL or Criteria API. I am not a pro at this, so please help me out. Been googling for 4 hours solid for an answer without any results. These are the classes: @Entity public class PostOffice { @Id private Long id; @ElementCollection(fetch=FetchType.LAZY) @CollectionTable(joinColumns=@JoinColumn(name = "CARRIERID")) private List<PostalCarrier> carriers; } @Embeddable public