JPA/JPQL: Fill a collection/map based on related object's collection/map? (prototype-like)
问题 I have such structure of entities: Product 1 -> N ProductCustomField 1 1 | | M M' Release 1 -> N' ReleaseCustomField ProductCustomField is kind of "prototype" - a list of fields which Release may have. I'd like to select a single Release object with all ReleaseCustomFields whose ProductCustomField are in the Product of which the Release is. Example: MySoft has custom field "downloadURL" with default value "". MySoft has release 1.0. This release has no ReleaseCustomFields, but because it is a