Hello,
we have an entity with a field whose type is a Map.
Once we annotate the field with @ElementCollection, in the other case with @Basic.
Is @Basic also a valid annotation for a Map field? And when it is valid why @Basic is faster at runtime.
@Entity public class TestEntity { @ElementCollection private Map<Integer, String> values = new HashMap<>(); @Basic private Map<Integer, String> values = new HashMap<>(); }
best regards
BTC