java.lang.IllegalStateException: Fetch joins are only possible if the root entity is selected

GitHub | JWGmeligMeyling | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Question about Fetch joins for non-root entities

    GitHub | 7 months ago | JWGmeligMeyling
    java.lang.IllegalStateException: Fetch joins are only possible if the root entity is selected

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Fetch joins are only possible if the root entity is selected

      at com.blazebit.persistence.impl.AbstractFullQueryBuilder.checkFetchJoinAllowed()
    2. com.blazebit.persistence
      AbstractFullQueryBuilder.fetch
      1. com.blazebit.persistence.impl.AbstractFullQueryBuilder.checkFetchJoinAllowed(AbstractFullQueryBuilder.java:154)
      2. com.blazebit.persistence.impl.AbstractFullQueryBuilder.fetch(AbstractFullQueryBuilder.java:162)
      2 frames
    3. com.pallasathenagroup.portal
      TestRun.main
      1. com.pallasathenagroup.portal.core.TestRun.main(TestRun.java:95)
      1 frame