The documentation says:
Create an expression for a literal
In the code I see such uses of cb.literal():
Expression<String> wordLiteral = cb.literal(word);
predicates.add(cb.like(namePath, wordLiteral));
But if omit wordLiteral here and use word instead, nothing changes. So what is this method for?