Hibernate / JPA Collection of Elements with Many to Many relationship?
问题 This is a strange scenario born of the fact that I am working with a legacy system who's structure I cannot change. The scenario is that I have a Element table that contains various data about an element with to important fields "type" and a "value". Various combinations of type and value are categorised. For instance, all Elements of type 2 and value "green" belong to category 1. I'm building a user interface in to the legacy system that lets users define these categories given a type and