Skip to content
Snippets Groups Projects
Commit 6c7db41a authored by Johannes Buechele's avatar Johannes Buechele
Browse files

added missing work id to meta file

parent 8d9fcc98
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ public abstract class WorkMapper extends BaseMapper<Work, WorkView, UUID> { ...@@ -58,6 +58,7 @@ public abstract class WorkMapper extends BaseMapper<Work, WorkView, UUID> {
public abstract WorkFileView toWorkFileView(WorkFile workFile); public abstract WorkFileView toWorkFileView(WorkFile workFile);
@Mapping(target = "licenseIdentifier", source = "license.identifier") @Mapping(target = "licenseIdentifier", source = "license.identifier")
@Mapping(target = "workId", source = "id")
public abstract MetaDataView toMetaDataView(Work work); public abstract MetaDataView toMetaDataView(Work work);
public abstract IpfsEntryView toIpfsView(IpfsEntry ipfsEntry); public abstract IpfsEntryView toIpfsView(IpfsEntry ipfsEntry);
......
...@@ -8,6 +8,7 @@ import lombok.extern.jackson.Jacksonized; ...@@ -8,6 +8,7 @@ import lombok.extern.jackson.Jacksonized;
import java.io.Serializable; import java.io.Serializable;
import java.time.ZonedDateTime; import java.time.ZonedDateTime;
import java.util.UUID;
//all attributes immutable //all attributes immutable
...@@ -15,6 +16,7 @@ import java.time.ZonedDateTime; ...@@ -15,6 +16,7 @@ import java.time.ZonedDateTime;
@Builder @Builder
@Jacksonized @Jacksonized
public class MetaDataView implements Serializable { public class MetaDataView implements Serializable {
UUID workId;
String title; String title;
String description; String description;
ZonedDateTime creationDate; ZonedDateTime creationDate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment