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?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • Future
    • 7.20.0.Final
    • optaplanner-core
    • 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.
    • NEW
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cdelmas Cyril Delmas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: