I faced the problem when using JPA criteria API. So I cannot use literals because criteria literals are bound as parameter too. And I cannot use a different fetch strategy either. Is there any possibility, that hibernate resolves criteria literals as real literals? |