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
|
@JsonProperty
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String idString;
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String location;
|
private String location;
|
||||||
|
|
||||||
public AttachmentDescriptor(long id, String location) {
|
public AttachmentDescriptor(long id, String location) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
this.idString = String.valueOf(id);
|
||||||
this.location = location;
|
this.location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,4 +44,8 @@ public class AttachmentDescriptor {
|
||||||
public String getLocation() {
|
public String getLocation() {
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getIdString() {
|
||||||
|
return idString;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue