The funny part is, Spring Data JPA has a quite serious take on this, in the form of query methods [0]. You create a repository interface with certain method names, and it dynamically creates an implementation that queries the columns of the underlying table, according to the name of the method.
[0] https://docs.spring.io/spring-data/jpa/reference/jpa/query-m...