In the JPA, I defined a native sql which will return String,
@NamedNativeQuery(name = \"alert\", query = \" select distinct c.accountId from account c \",
Do not include resultClass in query declaration
resultClass