I've got this class...
@Entity @Table(name = "language") public class Language implements Serializable{ ... private List<String> aliases; ... public boolean hasAlias(List<String> alai) { return ... ; } ... }
When I try to make this JPQL query: SELECT g from Language g where g.hasAlias("espanol", "italian")
It returns the error: Method 'hasAlias' is not found in type 'Language'