blob: 081df7fe2384498a4ff135ae33a9c766f9c5a59e [file] [log] [blame]
Edwardsamaxlf1bf7ad2025-06-03 23:52:16 +08001package com.pt.entity;
2
3import jakarta.persistence.*;
4import java.time.LocalDateTime;
5
6@Entity
7public class PeerInfoEntity {
8
9 @Id
10 @GeneratedValue(strategy = GenerationType.IDENTITY)
11 private Long id;
12
13 private String infoHash;
14 private String ip;
15 private int port;
16 private String peerId;
17 private LocalDateTime lastSeen;
18
19 public Long getId() {
20 return id;
21 }
22
23 public void setId(Long id) {
24 this.id = id;
25 }
26
27 public String getInfoHash() {
28 return infoHash;
29 }
30
31 public void setInfoHash(String infoHash) {
32 this.infoHash = infoHash;
33 }
34
35 public String getIp() {
36 return ip;
37 }
38
39 public void setIp(String ip) {
40 this.ip = ip;
41 }
42
43 public int getPort() {
44 return port;
45 }
46
47 public void setPort(int port) {
48 this.port = port;
49 }
50
51 public LocalDateTime getLastSeen() {
52 return lastSeen;
53 }
54
55 public void setLastSeen(LocalDateTime lastSeen) {
56 this.lastSeen = lastSeen;
57 }
58
59 public String getPeerId() {
60 return peerId;
61 }
62
63 public void setPeerId(String peerId) {
64 this.peerId = peerId;
65 }
66}