Nov 8, 2018

JPQL example query when using Enum in entity


Select c from contact c where c.rank= ca.i88.it.entity.Rank.A

You cannot directly use the string instead of Enum:

Select c from contact c where c.rank= 'A';