From 5df4cf4997e8a9cb9c00d50a5070c7c38bc12d42 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 29 Nov 2013 14:46:32 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86368 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/server/TDGWTServiceImpl.java | 4 ++-- .../portlets/user/td/gwtservice/shared/tr/ColumnData.java | 6 +++--- .../user/td/gwtservice/shared/tr/TabResource.java | 8 ++++---- .../portlets/user/td/gwtservice/shared/tr/TableData.java | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index d18571d..8ddb13a 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -212,7 +212,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements } else { ColumnData cData = new ColumnData(); - cData.setId(i); + cData.setId(Integer.toString(i)); cData.setName(c.getName()); cData.setTypeCode(c.getColumnType().getCode()); cData.setTypeName(c.getColumnType().getName()); @@ -411,7 +411,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements String.valueOf(tableId.getValue())); } - TabResource t = new TabResource(i, nameTR, descriptionTR, agencyTR, + TabResource t = new TabResource(String.valueOf(i), nameTR, descriptionTR, agencyTR, dateS, rightsTR, trId); return t; } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/ColumnData.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/ColumnData.java index 3064f2e..180fbfa 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/ColumnData.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/ColumnData.java @@ -12,7 +12,7 @@ public class ColumnData implements Serializable { private static final long serialVersionUID = 7614033455605898209L; - protected int id; // For insert in table only + protected String id; // For insert in table only protected String name; protected String typeName; protected String typeCode; @@ -50,11 +50,11 @@ public class ColumnData implements Serializable { this.trId = trId; } - public int getId() { + public String getId() { return id; } - public void setId(int id) { + public void setId(String id) { this.id = id; } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TabResource.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TabResource.java index 291c1a2..63a7fee 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TabResource.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TabResource.java @@ -17,7 +17,7 @@ public class TabResource implements Serializable { private static final long serialVersionUID = -8353499109124097114L; - protected int id; + protected String id; protected String name; protected String description; protected String agency; @@ -27,7 +27,7 @@ public class TabResource implements Serializable { public TabResource(){} - public TabResource(int id, String name, String description,String agency, String date, String right, TRId trId){ + public TabResource(String id, String name, String description,String agency, String date, String right, TRId trId){ this.id=id; this.name=name; this.description=description; @@ -37,11 +37,11 @@ public class TabResource implements Serializable { this.trId=trId; } - public int getId() { + public String getId() { return id; } - public void setId(int id) { + public void setId(String id) { this.id = id; } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TableData.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TableData.java index 2991f85..cf873ec 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TableData.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/tr/TableData.java @@ -13,7 +13,7 @@ public class TableData implements Serializable { private static final long serialVersionUID = -6248251038277538555L; - protected int id; // For insert in table only + protected String id; // For insert in table only protected String name; protected String typeName; protected String typeCode; @@ -70,11 +70,11 @@ public class TableData implements Serializable { this.metaData = metaData; } - public int getId() { + public String getId() { return id; } - public void setId(int id) { + public void setId(String id) { this.id = id; }