出错啦
org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: acca3851d4d8d24011d4d8d295c0001 near line 1, column 56 [select kindName from vo.BookChildKind where parent_id=8acca3851d4d8d24011d4d8d295c0001]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: acca3851d4d8d24011d4d8d295c0001 near line 1, column 56 [select kindName from vo.BookChildKind where parent_id=8acca3851d4d8d24011d4d8d295c0001] 
org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: acca3851d4d8d24011d4d8d295c0001 near line 1, column 56 [select kindName from vo.BookChildKind where parent_id=8acca3851d4d8d24011d4d8d295c0001]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: acca3851d4d8d24011d4d8d295c0001 near line 1, column 56 [select 我这样确实正确的:
select kindName from BookChildKind where parent_id='12';但是这样就错了
select kindName from BookChildKind where parent_id='8acca3851d4d8d24011d4d8d295c0001';
我数据库定义的是32为长度,id 是hibernate 自动实现的
搞不懂啊?32位变成31位了