[求解决]用JPA 原生sql 查询 找不到继承父类的create_by字段
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL **[select g.id,g.name,g.type,g.language,g.age,g.price,g.score,g.introduction,g.manufacturer,g.download_link as downloadLink from game_information g where g.name like concat('%',?,'%') and g.age = ? order by g.update_on desc ]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query] with root cause
_
java.sql.SQLException: Column 'create_by' not found._
父类对象
没有找到要查询的字段,检查字段名称是否写错或者查询与表中字段不一致