Trying to map a Map<Integer, List> to a postgreSQL JPA database
I’m trying to create a map of students with the key being the period number and value being A list of all students with that period. The student object is marked as an entity. @OneToMany(cascade = CascadeType.ALL) @MapKey(name = “period”) @JoinColumn(name = “teacher_id”) private Map<Integer, List<Student>> students; I also tried all this variation to students, […]