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

hibernate删除数据异常 报 java.lang.ClassCastException:java.lang.String

2014-01-26 
数据库sqlserver2000package beanpublic class PurviewinfoBean {private Long idprivate String employe

数据库sqlserver2000
 
  package bean;
 
  public class PurviewinfoBean {
  private Long id;
  private String employeeid;
  private String employeename;
  private String employeepassword;
  private String purview;
  public PurviewinfoBean() {
  super();
  }
 
  public static void main(String[] args) {
  PurviewinfoBean purviewinfoBean = new PurviewinfoBean();
  }
 
  public void setId(Long id) {
  this.id = id;
  }
 
  public void setEmployeeid(String employeeid) {
  this.employeeid = employeeid;
  }
 
  public void setEmployeename(String employeename) {
  this.employeename = employeename;
  }
 
  public void setEmployeepassword(String employeepassword) {
  this.employeepassword = employeepassword;
  }
 
  public void setPurview(String purview) {
  this.purview = purview;
  }
 
  public Long getId() {
  return id;
  }
 
  public String getEmployeeid() {
  return employeeid;
  }
 
  public String getEmployeename() {
  return employeename;
  }
 
  public String getEmployeepassword() {
  return employeepassword;
  }
 
  public String getPurview() {
  return purview;
  }
 
  }
 
 
 
 
 
  package table;
 
  import database.parent.HibernateBase;
  import net.sf.hibernate.HibernateException;
  import net.sf.hibernate.Query;
  import java.util.Iterator;
  import bean.PurviewinfoBean;
 
  public class Purviewinfo extends HibernateBase{
  public Purviewinfo() throws HibernateException {
  super();         

热点排行