第一次用 mysql 版本是5.0 
spring+hibernate+struts
下面是我登陆进的方法
public User login(User u) {
String sql = "from User where account='" + u.getAccount()
+ "' and password='" + u.getPassword() +"'" ;
List list = (List) this.getHibernateTemplate().find(sql);
User user = null;
if (list.size() > 0) {
user = (User) list.get(0);
}
return user;
}
走到List list = (List) this.getHibernateTemplate().find(sql);就抛错
 Hibernate operation: could not initialize collection: [com.sun.hibernate.system.Role.roleUrl#1]; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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
找了好多资料都没解决 到底错误在什么地方啊 mysql到底语法在那里错了 大家帮帮我吧 都快2点了 程序员好累哦~~~~