首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

java.lang.ClassCastException: java.lang.Long

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

我在使用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>
<property name= "keyword2 " type= "java.lang.String ">
<column name= "KEYWORD2 " length= "200 " />
</property>
<property name= "child " type= "java.lang.String ">
<column name= "CHILD " length= "100 " />
</property>
<property name= "brief " type= "java.lang.String ">         

热点排行