Commit a431f13d authored by Matija Obreza's avatar Matija Obreza

@Transient getters were not serialized to JSON

parent 237b4ad2
Pipeline #6177 passed with stage
in 2 minutes and 36 seconds
......@@ -173,7 +173,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*/
// TODO See if we can have a setter instead of this formula.
@Override
@Transient
public String getIdentifier() {
return uuid == null ? null : "urn:uuid:" + uuid.toString();
}
......@@ -184,7 +183,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return relative URL to the file resource
*/
@Transient
public String getUrl() {
return getStorageFullPath();
}
......@@ -195,7 +193,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename
*/
// not persisted
@Transient
public String getFilename() {
if (uuid == null) {
return null;
......@@ -215,7 +212,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename
*/
// not persisted
@Transient
public String getMetadataFilename() {
if (uuid == null) {
return null;
......@@ -229,7 +225,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return the storage path
*/
@Transient
public String getStoragePath() {
if (uuid == null) {
return null;
......@@ -243,7 +238,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*
* @return the storage full path
*/
@Transient
public String getStorageFullPath() {
return getStoragePath() + "/" + getFilename();
}
......
......@@ -22,7 +22,6 @@ import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.PrePersist;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.genesys.filerepository.metadata.ImageMetadata;
......@@ -150,7 +149,6 @@ public class RepositoryImage extends RepositoryFile implements ImageMetadata {
*
* @return Thumbnails path
*/
@Transient
public String getThumbnailPath() {
return getStoragePath() + "/" + getUuid();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment