Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1481

@DeepPlanningClone works on a field/getter of List<Foo>: should it deep planning Foo too automatically?

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.20.0.Final
    • Fix Version/s: Future
    • Component/s: optaplanner-core
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Get the working code on github.

      Remove the annotation on the Pool class, add it to the pools field in Schedule. Run.

      Show
      Get the working code on github . Remove the annotation on the Pool class, add it to the pools field in Schedule. Run.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      I have a fact class, Pools, that contains the anchor variables for my problem (virtualMachines). On the solution class, I have a pools collection.
      I need to deep clone the pools so that planner can work, otherwise I get duplicate entities in the solution (see StackOverflow).

      When adding @DeepPlanningClone on the pools field, it doesn't work, but adding it on the Pool class does.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cdelmas Cyril Delmas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: