HTML and CSS Reference
In-Depth Information
public void setStatus(int status) {
this.status = status;
}
public MegaUser getUserId() {
return userId;
}
public void setUserId(MegaUser userId) {
this.userId = userId;
}
public Book getBookId() {
return bookId;
}
public void setBookId(Book bookId) {
this.bookId = bookId;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof BookRequest)) {
return false;
}
BookRequest other = (BookRequest) object;
if ((this.id == null && other.id != null) || (this.id != null &&
!this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.jsfprohtml5.megaapp.model.BookRequest[ id=" + id + " ]";
}
}
BookRequest JPA entity class has the following attributes:
id : Marked as a primary key for the entity using @Id annotation. It is an auto-generated
attribute.
requestTime : A long type field to represent the request time.
responseTime : A long type field to represent the response time.
Search WWH ::




Custom Search