Commit a431f13d authored by Matija Obreza's avatar Matija Obreza
Browse files

@Transient getters were not serialized to JSON

parent 237b4ad2
...@@ -173,7 +173,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -173,7 +173,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
*/ */
// TODO See if we can have a setter instead of this formula. // TODO See if we can have a setter instead of this formula.
@Override @Override
@Transient
public String getIdentifier() { public String getIdentifier() {
return uuid == null ? null : "urn:uuid:" + uuid.toString(); return uuid == null ? null : "urn:uuid:" + uuid.toString();
} }
...@@ -184,7 +183,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -184,7 +183,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* *
* @return relative URL to the file resource * @return relative URL to the file resource
*/ */
@Transient
public String getUrl() { public String getUrl() {
return getStorageFullPath(); return getStorageFullPath();
} }
...@@ -195,7 +193,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -195,7 +193,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename * @return the filename
*/ */
// not persisted // not persisted
@Transient
public String getFilename() { public String getFilename() {
if (uuid == null) { if (uuid == null) {
return null; return null;
...@@ -215,7 +212,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -215,7 +212,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* @return the filename * @return the filename
*/ */
// not persisted // not persisted
@Transient
public String getMetadataFilename() { public String getMetadataFilename() {
if (uuid == null) { if (uuid == null) {
return null; return null;
...@@ -229,7 +225,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -229,7 +225,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* *
* @return the storage path * @return the storage path
*/ */
@Transient
public String getStoragePath() { public String getStoragePath() {
if (uuid == null) { if (uuid == null) {
return null; return null;
...@@ -243,7 +238,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac ...@@ -243,7 +238,6 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements Ac
* *
* @return the storage full path * @return the storage full path
*/ */
@Transient
public String getStorageFullPath() { public String getStorageFullPath() {
return getStoragePath() + "/" + getFilename(); return getStoragePath() + "/" + getFilename();
} }
......
...@@ -22,7 +22,6 @@ import javax.persistence.EnumType; ...@@ -22,7 +22,6 @@ import javax.persistence.EnumType;
import javax.persistence.Enumerated; import javax.persistence.Enumerated;
import javax.persistence.PrePersist; import javax.persistence.PrePersist;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
import org.genesys.filerepository.metadata.ImageMetadata; import org.genesys.filerepository.metadata.ImageMetadata;
...@@ -150,7 +149,6 @@ public class RepositoryImage extends RepositoryFile implements ImageMetadata { ...@@ -150,7 +149,6 @@ public class RepositoryImage extends RepositoryFile implements ImageMetadata {
* *
* @return Thumbnails path * @return Thumbnails path
*/ */
@Transient
public String getThumbnailPath() { public String getThumbnailPath() {
return getStoragePath() + "/" + getUuid(); 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