select ad from Assignmentdescription ad left join ad.Corpassignment cp where cp.Id=:id and cp.AssignmentState='02'"; 是这行sql语句的问题,如果改成 "from Assignmentdescription "

解决方案 »

  1.   

    SQLState: 01004
    SQLWARN1 SQLSTATE 01004 
    Explanation: The value of a string column was truncated when assigned to a host variable
    把问题的细节防盗GOOGLE上搜一下~ 你可以自己解决的~
      

  2.   

    驱动问题吧, 好象是oracle驱动不行, 换ojdbc驱动
      

  3.   

    left join 改成 left join fetch 试试
      

  4.   

    hibernate.util.JDBCExceptionReporter]-[ERROR] 将截断字符串或二进制数据。
    把字段的字符串长度设大点,把输入的数据搞小点试试。