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

GitHub | JWGmeligMeyling | 4 months ago
  1. 0

    Question about Fetch joins for non-root entities

    GitHub | 4 months ago | JWGmeligMeyling
    java.lang.IllegalStateException: Fetch joins are only possible if the root entity is selected
  2. 0
    Upgrade sbt-dependency-graph to 0.8.2 or later.
  3. 0
    Execute mvn dependency:tree from your project's root directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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