Search code examples
hibernatejpaspring-dataquerydsl

straight_join in JPA or HIBERNATE


How to use select straight_join ... from ... in hibernate/jpa?


Solution

  • There is no straight_join for JPQL/JPA.

    You will need to use it in NativeQuery.

    entityManager.createNativeQuery(...);