From 26296cec84966a2201a908ef7bfef1cce3f00343 Mon Sep 17 00:00:00 2001 From: Arne Seime Date: Mon, 30 Jan 2017 20:26:45 +0100 Subject: [PATCH] Never truncate objectIds, information is lost and can cause duplicate ids when ie exporting data and merging ids for better compression --- .../main/java/mobi/chouette/model/NeptuneIdentifiedObject.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobi.chouette.model/src/main/java/mobi/chouette/model/NeptuneIdentifiedObject.java b/mobi.chouette.model/src/main/java/mobi/chouette/model/NeptuneIdentifiedObject.java index 15c76a98ca..6f5ae88682 100644 --- a/mobi.chouette.model/src/main/java/mobi/chouette/model/NeptuneIdentifiedObject.java +++ b/mobi.chouette.model/src/main/java/mobi/chouette/model/NeptuneIdentifiedObject.java @@ -53,7 +53,8 @@ public abstract class NeptuneIdentifiedObject extends NeptuneObject implements protected String objectId; public void setObjectId(String value) { - objectId = StringUtils.abbreviate(value, 255); + // Do not abbreviate objectIds, it causes information to be lost on ie exports and leads to duplicate data + objectId = value; } /**