org.optaplanner.core.api.domain.lookup

## Annotation Type PlanningId

-     @Target(value={METHOD,FIELD})
       @Retention(value=RUNTIME)
      public @interface PlanningId

  Specifies that a bean property (or a field) is the id to match when `locating` an externalObject (often from another `Thread` or JVM). Used during `Move` rebasing and in a `ProblemFactChange`.

  It is specified on a getter of a java bean property (or directly on a field) of a `PlanningEntity` class, `planning value` class or any `problem fact` class.

  The return type can be any type which overrides `Object.equals(Object)` and `Object.hashCode()`, but is usually `Long` or `String`. It must never return a null instance.

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.