Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SwitchRoom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fz2907
SwitchRoom
Commits
0de6d179
Commit
0de6d179
authored
2 years ago
by
fz2907
Browse files
Options
Downloads
Patches
Plain Diff
Add AgreedRecordTable, used as history table, and offer time check table
parent
4f5ac82e
No related branches found
No related tags found
1 merge request
!37
Start AgreedMatchPage to show the ongoing matches and history matches for user...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BackendFolder/SwitchRoom/src/main/java/vt/CS5934/SwitchRoom/models/AgreedRecordTable.java
+132
-0
132 additions, 0 deletions
...n/java/vt/CS5934/SwitchRoom/models/AgreedRecordTable.java
with
132 additions
and
0 deletions
BackendFolder/SwitchRoom/src/main/java/vt/CS5934/SwitchRoom/models/AgreedRecordTable.java
0 → 100644
+
132
−
0
View file @
0de6d179
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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment