I\'m quite new to JPA and I\'m having trouble converting this raw PSQL query to JPA.
Here\'s the raw query used:
SELECT * from SMS_MESSAGE AS smsMessag