| package com.pt.entity; |
| |
| import jakarta.persistence.Entity; |
| import jakarta.persistence.GeneratedValue; |
| import jakarta.persistence.GenerationType; |
| import jakarta.persistence.Id; |
| |
| import java.time.LocalDateTime; |
| |
| @Entity |
| public class TorrentMeta { |
| @Id |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| private Long id; |
| |
| private String filename; |
| private String infoHash; |
| private Long size; |
| private LocalDateTime uploadTime; |
| private byte[] torrentData; |
| |
| public Long getId() { |
| return id; |
| } |
| |
| public void setId(Long id) { |
| this.id = id; |
| } |
| |
| public String getFilename() { |
| return filename; |
| } |
| |
| public void setFilename(String filename) { |
| this.filename = filename; |
| } |
| |
| public String getInfoHash() { |
| return infoHash; |
| } |
| |
| public void setInfoHash(String infoHash) { |
| this.infoHash = infoHash; |
| } |
| |
| public Long getSize() { |
| return size; |
| } |
| |
| public void setSize(Long size) { |
| this.size = size; |
| } |
| |
| public LocalDateTime getUploadTime() { |
| return uploadTime; |
| } |
| |
| public void setUploadTime(LocalDateTime uploadTime) { |
| this.uploadTime = uploadTime; |
| } |
| |
| public byte[] getTorrentData() { |
| return torrentData; |
| } |
| |
| public void setTorrentData(byte[] torrentData) { |
| this.torrentData = torrentData; |
| } |
| } |