Skip to content
Snippets Groups Projects
Commit 0de6d179 authored by fz2907's avatar fz2907
Browse files

Add AgreedRecordTable, used as history table, and offer time check table

parent 4f5ac82e
No related branches found
No related tags found
1 merge request!37Start AgreedMatchPage to show the ongoing matches and history matches for user...
package vt.CS5934.SwitchRoom.models;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "success_record_table")
@IdClass(MatchedRecordIdModel.class)
@NoArgsConstructor
public class AgreedRecordTable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", nullable = false)
private Long id;
private Long stateCityCode;
private Long wishlistId;
private Long wishlistUserId;
private Long offerId;
private Date startTime;
private Date endTime;
private Integer toOfferStar;
private Integer toVisitorStar;
@Column(length = 500)
private String toOfferComment;
@Column(length = 500)
private String toVisitorComment;
public AgreedRecordTable(Long stateCityCode, Long wishlistId, Long wishlistUserId, Long offerId, Date startTime,
Date endTime, Integer toOfferStar, Integer toVisitorStar, String toOfferComment,
String toVisitorComment) {
this.stateCityCode = stateCityCode;
this.wishlistId = wishlistId;
this.wishlistUserId = wishlistUserId;
this.offerId = offerId;
this.startTime = startTime;
this.endTime = endTime;
this.toOfferStar = toOfferStar;
this.toVisitorStar = toVisitorStar;
this.toOfferComment = toOfferComment;
this.toVisitorComment = toVisitorComment;
}
public Long getStateCityCode() {
return stateCityCode;
}
public void setStateCityCode(Long stateCityCode) {
this.stateCityCode = stateCityCode;
}
public Long getWishlistId() {
return wishlistId;
}
public void setWishlistId(Long wishlistId) {
this.wishlistId = wishlistId;
}
public Long getWishlistUserId() {
return wishlistUserId;
}
public void setWishlistUserId(Long wishlistUserId) {
this.wishlistUserId = wishlistUserId;
}
public Long getOfferId() {
return offerId;
}
public void setOfferId(Long offerId) {
this.offerId = offerId;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public Integer getToOfferStar() {
return toOfferStar;
}
public void setToOfferStar(Integer toOfferStar) {
this.toOfferStar = toOfferStar;
}
public Integer getToVisitorStar() {
return toVisitorStar;
}
public void setToVisitorStar(Integer toVisitorStar) {
this.toVisitorStar = toVisitorStar;
}
public String getToOfferComment() {
return toOfferComment;
}
public void setToOfferComment(String toOfferComment) {
this.toOfferComment = toOfferComment;
}
public String getToVisitorComment() {
return toVisitorComment;
}
public void setToVisitorComment(String toVisitorComment) {
this.toVisitorComment = toVisitorComment;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment