I need to save an element with type Map<Item, Set<Item>> using JPA2 annotations. The relationship is many for many, and Item objects are entities.
Should I create a separate intermediate Entity object containing Set<Item> or is direct matching possible?
Please indicate if any context is missing.
matthieus
source share