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
This commit is contained in:
Giancarlo Panichi 2013-11-29 14:46:32 +00:00
parent d3345caa7a
commit 5df4cf4997
4 changed files with 12 additions and 12 deletions

View File

@ -212,7 +212,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
} else { } else {
ColumnData cData = new ColumnData(); ColumnData cData = new ColumnData();
cData.setId(i); cData.setId(Integer.toString(i));
cData.setName(c.getName()); cData.setName(c.getName());
cData.setTypeCode(c.getColumnType().getCode()); cData.setTypeCode(c.getColumnType().getCode());
cData.setTypeName(c.getColumnType().getName()); cData.setTypeName(c.getColumnType().getName());
@ -411,7 +411,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
String.valueOf(tableId.getValue())); 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); dateS, rightsTR, trId);
return t; return t;
} }

View File

@ -12,7 +12,7 @@ public class ColumnData implements Serializable {
private static final long serialVersionUID = 7614033455605898209L; 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 name;
protected String typeName; protected String typeName;
protected String typeCode; protected String typeCode;
@ -50,11 +50,11 @@ public class ColumnData implements Serializable {
this.trId = trId; this.trId = trId;
} }
public int getId() { public String getId() {
return id; return id;
} }
public void setId(int id) { public void setId(String id) {
this.id = id; this.id = id;
} }

View File

@ -17,7 +17,7 @@ public class TabResource implements Serializable {
private static final long serialVersionUID = -8353499109124097114L; private static final long serialVersionUID = -8353499109124097114L;
protected int id; protected String id;
protected String name; protected String name;
protected String description; protected String description;
protected String agency; protected String agency;
@ -27,7 +27,7 @@ public class TabResource implements Serializable {
public TabResource(){} 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.id=id;
this.name=name; this.name=name;
this.description=description; this.description=description;
@ -37,11 +37,11 @@ public class TabResource implements Serializable {
this.trId=trId; this.trId=trId;
} }
public int getId() { public String getId() {
return id; return id;
} }
public void setId(int id) { public void setId(String id) {
this.id = id; this.id = id;
} }

View File

@ -13,7 +13,7 @@ public class TableData implements Serializable {
private static final long serialVersionUID = -6248251038277538555L; 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 name;
protected String typeName; protected String typeName;
protected String typeCode; protected String typeCode;
@ -70,11 +70,11 @@ public class TableData implements Serializable {
this.metaData = metaData; this.metaData = metaData;
} }
public int getId() { public String getId() {
return id; return id;
} }
public void setId(int id) { public void setId(String id) {
this.id = id; this.id = id;
} }