Quote:
throw Exception:
2005-12-19 14:54:12,060 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select eventattac0_.id as id0_, eventattac0_.event_id as event2_0_, eventattac0_.attach_title as attach3_0_, eventattac0_.creater as creater0_, eventattac0_.attach_time as attach5_0_, eventattac0_.attach_status as attach6_0_, eventattac0_.attach_remarks as attach7_0_ from events_attach eventattac0_]
java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, ?' at line 1
The SQL in the quote is not the SQL that generated the error. The error is close to some query parameters, but the SQL is missing any conditional statements. There should be a where clause because you are restricting the result set size. Please show a more complete stacktrace.