SQL Error: 904, SQLState: 42000

问题:
WARN  2011-03-04 09:33:18 org.hibernate.util.JDBCExceptionReporter - SQL Error: 904, SQLState: 42000
ERROR 2011-03-04 09:33:18 org.hibernate.util.JDBCExceptionReporter - ORA-00904: "MENU0_"."MENU_OPEN_IN_HOME": 标识符无效

Hibernate: select portletloc0_.PORTLET_LOCATION_ROW as col_0_0_, portletloc0_.PORTLET_LOCATION_COLUMN as col_1_0_, portlet1_.PORTLET_URL as col_2_0_, portlet1_.PORTLET_TITLE as col_3_0_, portletloc0_.PORTLET_ID as col_4_0_ from JEDA_PORTLET_LOCATION portletloc0_, JEDA_PORTLET portlet1_ where portletloc0_.PORTLET_ID=portlet1_.PORTLET_ID and portletloc0_.POSITION_ID=? order by portletloc0_.PORTLET_LOCATION_ROW asc, portletloc0_.PORTLET_LOCATION_COLUMN asc
2011-3-4 9:33:18 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet DispatcherServlet threw exception
java.sql.SQLException: ORA-00904: "MENU0_"."MENU_OPEN_IN_HOME": 标识符无效


原因:
hbm.xml文件的属性名与数据库的属性名不对应

你可能感兴趣的:(apache,sql,Hibernate,xml,servlet)