Package io.jmix.core

Class EntityStates.FetchPlanVisitKey

java.lang.Object
io.jmix.core.EntityStates.FetchPlanVisitKey
Enclosing class:
EntityStates

protected static class EntityStates.FetchPlanVisitKey extends Object
Key for a visited entity graph node.

Entity is compared by Java object identity to avoid merging different instances with the same entity id. Declared entity class is part of the key because the same runtime instance can be reached through properties declared with different entity classes, and each path must get a fetch plan compatible with its declaration.

  • Constructor Details

    • FetchPlanVisitKey

      public FetchPlanVisitKey(Entity entity, Class<?> declaredEntityClass)
  • Method Details

    • getEntity

      public Entity getEntity()
    • getDeclaredEntityClass

      public Class<?> getDeclaredEntityClass()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object