michaelwilli

ChildDownload

Mar 9th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.31 KB | None | 0 0
  1. package com.oshosanya.jdownload.entity;
  2.  
  3. import javax.persistence.*;
  4.  
  5. @Entity
  6.  
  7. public class ChildDownload {
  8.     @Id
  9.     @GeneratedValue
  10.     private int Id;
  11.     private int StartLength;
  12.     private int EndLength;
  13.     private int BytesDownloaded = 0;
  14.     private String FileName;
  15.  
  16.     @ManyToOne
  17.     @JoinColumn(name="download_id")
  18.     private Download download;
  19.  
  20.     public int getId() {
  21.         return Id;
  22.     }
  23.  
  24.     public void setId(int id) {
  25.         Id = id;
  26.     }
  27.  
  28.     public int getStartLength() {
  29.         return StartLength;
  30.     }
  31.  
  32.     public void setStartLength(int startLength) {
  33.         StartLength = startLength;
  34.     }
  35.  
  36.     public int getEndLength() {
  37.         return EndLength;
  38.     }
  39.  
  40.     public void setEndLength(int endLength) {
  41.         EndLength = endLength;
  42.     }
  43.  
  44.     public int getBytesDownloaded() {
  45.         return BytesDownloaded;
  46.     }
  47.  
  48.     public void setBytesDownloaded(int bytesDownloaded) {
  49.         BytesDownloaded = bytesDownloaded;
  50.     }
  51.  
  52.     public String getFileName() {
  53.         return FileName;
  54.     }
  55.  
  56.     public void setFileName(String fileName) {
  57.         FileName = fileName;
  58.     }
  59.  
  60.     public Download getDownload() {
  61.         return download;
  62.     }
  63.  
  64.     public void setDownload(Download download) {
  65.         this.download = download;
  66.     }
  67. }
Add Comment
Please, Sign In to add comment