Perhaps something fundamental I do not understand about the semantics of the JPA @MapKey element. I am trying to save a map with entity keys and entity values. The circuit is automatically generated by sleep mode. It generates a connection table that maps value objects to the containing object (which has the Map property) and ignores the keys. so effectively, he simply sees it as a set of values ββand ignores the keys, as far as I can tell. What am I missing here? thank you
@Entity public class PracticeMap { @javax.persistence.OneToMany(cascade = CascadeType.ALL) @javax.persistence.MapKey public Map<KeySample, ValueSample> getMap1() { return map1; }
source share