怎么没人回啊?
本人正在学习hibernate,希望大家多多指教
本人正在学习hibernate,希望大家多多指教
解决方案 »
- struts求解释
- myelipse课程设计,链接数据库不行啊
- org.logicalcobwebs.proxool.ProxoolException: Parsing failed.
- 服务器报错java.lang.NoClassDefFoundError: org/apache/struts/actions/DispatchAction
- 请教JXL操作EXCEL的一个问题?迷惑
- 100分请教开发工具一问题
- 如何解决JAVA中权限问题(在线等待)
- 转 请大家讨论一下,现在我们开发J2EE的Application Server还有没有机会,这里有没有这种人才? (愿意给300分)
- 表单提交的时候保存和返回只要两个图片就好了吗 不要具体的方法
- war 包引用lib库之奇葩问题
- 为什么在Tomcate 5.0/conf下的server.xml文件中没有<context>这个东东?
- 怎样比较两个页面变量的大小(STRUTS)?
import java.io.*;public class Department{
/**
* 部门简介
*/
private String dep_brief;
/**
* 部门ID
*/
private Integer dep_id;
/**
* 部门名
*/
private String dep_name;
/**
* 部门权限
*/
private Integer dep_right;
public String getDep_brief() {
return dep_brief;
}
public void setDep_brief(String dep_brief) {
this.dep_brief = dep_brief;
}
public Integer getDep_id() {
return dep_id;
}
public void setDep_id(Integer dep_id) {
this.dep_id = dep_id;
}
public String getDep_name() {
return dep_name;
}
public void setDep_name(String dep_name) {
this.dep_name = dep_name;
}
public Integer getDep_right() {
return dep_right;
}
public void setDep_right(Integer dep_right) {
this.dep_right = dep_right;
}
//many端
private java.util.List department;
public java.util.List getDepartment() {
return department;
}
public void setDepartment(java.util.List department) {
this.department = department;
}
}
在更新dep表时报错:
net.sf.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: 1, of class: com.department.Department可能因为dep_id 和department 两者,导致对象不唯一,请问该如何解决??