'Substring in select statement in JPQL
I'm trying to select a substring of column, i.e. select substring(description, 1, 200) from category where id=1
Is it possible to have a substring function within a select statement in JPQL/JPA 2? If yes, how? If no, are there any alternatives? Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
