add log trim

This commit is contained in:
Efstratios Giannopoulos 2024-05-22 16:31:44 +03:00
parent ac6fd08fb7
commit 8986d9f9fc
2 changed files with 9 additions and 1 deletions

View File

@ -41,7 +41,11 @@
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId> <artifactId>jackson-annotations</artifactId>
<version>2.17.0</version> <version>2.17.0</version>
<scope>compile</scope> </dependency>
<dependency>
<groupId>gr.cite</groupId>
<artifactId>logging</artifactId>
<version>2.2.0</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1,9 +1,13 @@
package org.opencdmp.commonmodels.models; package org.opencdmp.commonmodels.models;
import gr.cite.tools.logging.annotation.LogTrim;
public class FileEnvelopeModel { public class FileEnvelopeModel {
private String filename; private String filename;
private String fileRef; private String fileRef;
private String mimeType; private String mimeType;
@LogTrim(50)
private byte[] file; private byte[] file;
public String getFilename() { public String getFilename() {