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