B/S系统,偶尔出现Could not execute query的错误,重新刷新后恢复正常各位兄弟姐妹有没有解决办法?

解决方案 »

  1.   

    hbm文件是用工具生成的:<?xml version="1.0" encoding="utf-8" ?>
    <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
      <class name="PerformanceDal.Vo.T_JCSJ_JGKZ,PerformanceDal" table="T_JCSJ_JGKZ">
        <id name="C_JGID" column="C_JGID" type="String"  length="32"  unsaved-value="0">
          <generator class="assigned" />
        </id>
        <property name="C_SFKH" column="C_SFKH" type="String"  length="1"  />
        <property name="C_BMLX" column="C_BMLX" type="String"  length="1"  />
        <property name="C_JGJC" column="C_JGJC" type="String"  length="32"  />
        <property name="C_BMLD" column="C_BMLD" type="String"  length="32"  />
        <property name="C_ZGYLDID" column="C_ZGYLDID" type="String"  length="32"  />
      </class>
    </hibernate-mapping>