Hibernate生成sql错误!!!!
我的实体类如下
Java code
@Entity
@Table(name = "kh_riskevualtion", catalog = "guarantee")
public class KhRiskevualtion implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private Integer fxpgId;
private KhSurvey khSurvey;
private KhClientlnformation khClientlnformation;
private GyEmployee gyEmployee;
private KhRisktype khRisktype;
private String dccontent;
private String dcyj;
private Date dctime;
。。。。。。。。。。。。。。。
当程序运行时,查询结果出不来,查看生成的sql如下,发现最后加了where serialVersionUID like ?:
Hibernate: select khriskevua0_.fxpgId as fxpgId22_, khriskevua0_.dccontent as dccontent22_, khriskevua0_.dctime as dctime22_, khriskevua0_.dcyj as dcyj22_, khriskevua0_.emp_Id as emp5_22_, khriskevua0_.customId as customId22_, khriskevua0_.fxflId as fxflId22_, khriskevua0_.dcmdId as dcmdId22_ from guarantee.kh_riskevualtion khriskevua0_ where serialVersionUID like ?
这是为什么啊?怎么才能去掉啊?
------解决方案--------------------把你查询的语句发来看看
------解决方案--------------------查詢語句不發,怎麼找
------解决方案--------------------楼主 错误 能不能全点
是不是配置错误啦 ~
------解决方案--------------------就是啊,楼主 原查询语句呢?? 发来看看..