Skip to content
Snippets Groups Projects
Commit ee744dd5 authored by Jan Pokorný's avatar Jan Pokorný :lifter_tone2:
Browse files

Fixing fetch 500 error

parent 0e17d9ad
No related branches found
No related tags found
1 merge request!51M4 language school
......@@ -35,14 +35,14 @@ public class User extends DomainObject {
private String lastName;
@ManyToMany(fetch = FetchType.LAZY)
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "user_course",
joinColumns = @JoinColumn(name = "student_id"),
inverseJoinColumns = @JoinColumn(name = "course_id")
)
private Set<Course> courses;
@ElementCollection(fetch = FetchType.LAZY)
@ElementCollection(fetch = FetchType.EAGER)
private Map<Language, ProficiencyLevel> languageProficiency;
public User(String username, String email, String firstName, String lastName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment