MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » hibernate 插入错误

hibernate 插入错误

www.MyException.Cn  网友分享于:2013-11-19  浏览:344次
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= "200 "   />
                </property>

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有