Make attachment ids available in string form
Since JS can't handle 8 byte longs (!) // FREEBIE
This commit is contained in:
parent
3b9a76c1f2
commit
934d7e0f02
|
@ -23,11 +23,15 @@ public class AttachmentDescriptor {
|
|||
@JsonProperty
|
||||
private long id;
|
||||
|
||||
@JsonProperty
|
||||
private String idString;
|
||||
|
||||
@JsonProperty
|
||||
private String location;
|
||||
|
||||
public AttachmentDescriptor(long id, String location) {
|
||||
this.id = id;
|
||||
this.idString = String.valueOf(id);
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
|
@ -40,4 +44,8 @@ public class AttachmentDescriptor {
|
|||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public String getIdString() {
|
||||
return idString;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue