Introduction/Context:
I'm working on developing a Time-fold's app using Spring Boot. The goal is to create a timetable similar to the example provided in Time-fold's documentation. I've defined two enumerations, DomainandRoom-type, which represent the teaching domain of a teacher and the type of room respectively.
Entities:
this picture represents entities:
Enumeration:
public enum Domain {
MATHEMATICS,
SCIENCE,
HISTORY,
// Other teaching domains...
}
public enum RoomType {
ART_ROOM,
MUSIC_ROOM,
COMPUTER_ROOM,
CLASSROOM,
// Other room types...
}
Question/Issue:
Now, I need to annotate these entities using Time-fold's annotations to achieve the desired functionality. Specifically, I want for a specified room assign lessons to teachers based on certain constraints, such as maximum lessons per day, teacher availability, etc. I want a solution like this on Monday, in Room x, with a maximum of lessons per day equal to 3, lesson 1 is assigned to teacher y, lesson 2 is assigned to teacher z, and lesson 3 is assigned to a teacher w
How can I annotate these entities to accomplish this?

I don't have much experience in
timefold, however, I see from the documentation (Link below) that they have provided some examples using the same concept of 'lessons'.https://timefold.ai/docs/timefold-solver/latest/quickstart/spring-boot/spring-boot-quickstart#_lesson
UPDATE
In this update, I have added some code to aid with the solution. (Note that I have ommited some code such as getters and setters)