com.sippnex.fileblade.entities.UploadRequest Maven / Gradle / Ivy
package com.sippnex.fileblade.entities;
import javax.persistence.*;
import java.util.Date;
@Entity
public class UploadRequest {
@Id
@GeneratedValue
private Long id;
private String fileName;
@ManyToOne
@JoinColumn(name = "parent_directory_id")
private Directory parentDirectory;
private Date creationDate;
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 Directory getParentDirectory() {
return parentDirectory;
}
public void setParentDirectory(Directory parentDirectory) {
this.parentDirectory = parentDirectory;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public UploadRequest() {
}
}