View Javadoc
1   package de.dlr.shepard.mongoDB;
2   
3   import java.util.Date;
4   import lombok.Data;
5   import lombok.EqualsAndHashCode;
6   import lombok.NoArgsConstructor;
7   import lombok.ToString;
8   import org.eclipse.microprofile.openapi.annotations.media.Schema;
9   import org.neo4j.ogm.annotation.NodeEntity;
10  
11  @NodeEntity
12  @Data
13  @EqualsAndHashCode(callSuper = true)
14  @ToString(callSuper = true)
15  @NoArgsConstructor
16  public class ShepardFile extends AbstractMongoObject {
17  
18    @Schema(readOnly = true)
19    private String filename;
20  
21    @Schema(readOnly = true, nullable = true)
22    private String md5;
23  
24    public ShepardFile(Date createdAt, String filename, String md5) {
25      setCreatedAt(createdAt);
26      this.filename = filename;
27      this.md5 = md5;
28    }
29  
30    public ShepardFile(String oid, Date createdAt, String filename, String md5) {
31      super(oid, createdAt);
32      this.filename = filename;
33      this.md5 = md5;
34    }
35  }