Submission exercise-epita-ing-assistants-yaka-jws-2028-guillem.george-522732c

This commit is contained in:
Guillem George 2026-02-12 16:53:12 +01:00
parent 522732ceee
commit 20ab7bc8b2
6 changed files with 38 additions and 1 deletions

View file

@ -8,5 +8,5 @@ import java.util.List;
public class CourseModel {
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) protected Long id;
public String name;
public @ElementCollection @CollectionTable(name = "course_model_tags") List<String> tag;
public @ElementCollection @CollectionTable(name = "course_model_tags") @JoinColumn(name="course_id") List<String> tag;
}