我爱Aspx >> Asp.Net >> struts和hibernate简单问题this.borrowallowed = borrowallowed;
}
public boolean equals(Object rhs){
if (rhs == null)
return false;
if (! (rhs instanceof Book))
return false;
Book that = (Book) rhs;
if (this.getId() == null || that.getId() == null)
return false;
return (this.getId().equals(that.getId()));
}
public int hashCode(){
if (this.hashValue == 0){
int result = 17;
int idValue = this.getId() == null ? 0 : this.getId().hashCode();
result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}
}
public class Book extends AbstractBook implements Serializable{
public Book(){
}
public Book(java.lang.Integer id){
super(id);
}
}
book类的映射文件是这样
<?xml version="1.0" encoding="UTF-8"?>
Ҷƪл˵?
用spring创建sessionFactory时的..[07-06]
正在做一个登录的程序,请教各位..[07-06]
兄弟们,求救了!如何让wince下地..[07-06]
net程序到底需不需要框架[07-06]
struts+hibernate+sql2000出现下..[07-06]
关于局部变量,全局变量,实例变..[07-06]
div等元素的疑问?[07-06]
求一段根据服务器字段全选的JS代..[07-06]
linux 如何录音保存为.wav文件-..[07-06]
DirectInput8中使用mouse的问题[07-06]