-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReturns.java
More file actions
45 lines (33 loc) · 1000 Bytes
/
Returns.java
File metadata and controls
45 lines (33 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.example.accessingdatajpa;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Returns{
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long BookId;
private String BookName;
private int TimeStamp;
protected Returns() {}
public Returns(Long BookId, String BookName, int TimeStamp) {
this.BookId = BookId;
this.BookName = BookName;
this.TimeStamp = TimeStamp;
@Override
public String toString() {
return String.format(
"Returns[BookId=%d, BookName='%s', TimeStamp='%d']",
BookId, BookName, TimeStamp);
}
public Long BookId() {
return BookId;
}
public String BookName() {
return BookName;
}
public int TimeStamp() {
return TimeStamp;
}
}