From 3b01463f60693a787408cbd2c7d0e8c049194559 Mon Sep 17 00:00:00 2001 From: Rutger Lubbers Date: Mon, 2 Sep 2024 11:08:12 +0200 Subject: [PATCH] docs: fix InverseRelationShadowVariable code snippet (#1066) InverseRelationShadowVariable is on a collection of the holder of the relationship. For instance, see the `Consumer` to `Facility` in the `facility-location` quickstart project. --- .../using-timefold-solver/modeling-planning-problems.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc b/docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc index bb04123428..1b33e69295 100644 --- a/docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc +++ b/docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc @@ -619,7 +619,7 @@ Java:: public class Timeslot { @InverseRelationShadowVariable(sourceVariableName = "timeslot") - public List timeslotList; + public List lessons; ... @@ -632,7 +632,7 @@ Python:: ---- @planning_entity class Timeslot: - timeslot_list: Annotated[list[Timeslot], InverseRelationShadowVariable(source_variable_name ="timeslot")] + lesson_list: Annotated[list[Lesson], InverseRelationShadowVariable(source_variable_name ="timeslot")] ... ---- ==== @@ -2791,4 +2791,4 @@ def generate_demo_data(demo_data: DemoData) -> Timetable: ==== Usually, most of this data comes from your data layer, -and your solution implementation just aggregates that data and creates the uninitialized planning entity instances for the solver to plan. \ No newline at end of file +and your solution implementation just aggregates that data and creates the uninitialized planning entity instances for the solver to plan.