日期:2014-05-18  浏览次数:20697 次

hibernate 插入异常
我在使用hibernate插入数据的时候出现异常错误   java.lang.Long
而实际上数据却已经插入到数据库中

系统采用SSH框架   下面是类的映射文件

<?xml   version= "1.0 "   encoding= "utf-8 "?>
<!DOCTYPE   hibernate-mapping   PUBLIC   "-//Hibernate/Hibernate   Mapping   DTD   3.0//EN "
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ">
<!--
        Mapping   file   autogenerated   by   MyEclipse   -   Hibernate   Tools
-->
<hibernate-mapping>
        <class   name= "com.ffcs.lsoc.bo.KnowledgeInfo "   table= "KNOWLEDGE_INFO "   schema= "FFCSNSS ">
                <id   name= "knowledgeid "   type= "java.lang.Long ">
                        <column   name= "KNOWLEDGEID "   precision= "22 "   scale= "0 "   />
                          <generator   class= "sequence "   >
                        <param   name= "sequence "> SEQ_KNOWLEDGE_INFO </param>
                        </generator>
                </id>
                <property   name= "nodeid "   type= "java.lang.Long ">
                        <column   name= "NODEID "   precision= "22 "   scale= "0 "   />
                </property>
                <property   name= "title "   type= "java.lang.String ">
                        <column   name= "TITLE "   length= "300 "   />
                </property>
                <property   name= "range "   type= "java.lang.String ">
                        <column   name= "RANGE "   length= "100 "   />
                </property>
                <property   name= "keyword "   type= "java.lang.String ">
                        <column   name= "KEYWORD "   length= "200 "   />
                </property>
                <property   name= "keyword1 "   type= "java.lang.String ">
                        <column   name= "KEYWORD1 "   length= &quo