JPQL works with entity property names (the fields or getter/setter methods in your Java class) rather than the actual database column names. So if your last_updated_on
is a field in your BaseEntity
class, and your entity uses camelCase for property names, you should use f.lastUpdatedOn
in your query instead of f.last_updated_on
.