I would like to store a map with Integer,Entity but JPA is storing the entity inline so that means i get an error like that:
A truncation error was encountered trying to shrink VARCHAR '곭獲4捯洮瑨潭慳灥牯畴歡汰瑩浩湧潤敬⹈慲摷慲敆潯瑰物湴���Ȁౌ彰敲獩獴敮捥彦整捨䝲潵灴,䱯牧⽥捬楰獥⽰敲獩獴&' to length 255..
How can i force JPA to only store the id of the entity?
EDIT:
@ElementCollection
private Map<Integer, Footprint> footprints = new LinkedHashMap<>();