[#21890] Passed to mongoID. Passed to gcube-bom 2.0.1

This commit is contained in:
Francesco Mangiacrapa 2021-07-30 11:15:56 +02:00
parent 662ead96a4
commit 4fa00e1fa2
3 changed files with 10 additions and 11 deletions

View File

@ -10,6 +10,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
#### Enhancements
[#20595] Porting common model
[#21890] Passed to mongoID
Passed to gcube-bom 2.0.1
## [v1.0.0] - 2020-12-01

View File

@ -41,7 +41,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -6,9 +6,9 @@ import java.io.Serializable;
/**
* The Class GeoNaItemRef.
*
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Dec 1, 2020
* Jul 30, 2021
*/
public class GeoNaItemRef implements Serializable {
@ -17,7 +17,8 @@ public class GeoNaItemRef implements Serializable {
*/
private static final long serialVersionUID = -7021431511279022193L;
private Long itemId;
// this is the mongoID
private String itemId;
private String itemType;
private String itemName;
@ -37,7 +38,7 @@ public class GeoNaItemRef implements Serializable {
* @param itemId the item id
* @param itemType the item type
*/
public GeoNaItemRef(Long itemId, String itemType) {
public GeoNaItemRef(String itemId, String itemType) {
super();
this.itemId = itemId;
this.itemType = itemType;
@ -48,7 +49,7 @@ public class GeoNaItemRef implements Serializable {
*
* @return the item id
*/
public Long getItemId() {
public String getItemId() {
return itemId;
}
@ -57,7 +58,7 @@ public class GeoNaItemRef implements Serializable {
*
* @param itemId the new item id
*/
public void setItemId(Long itemId) {
public void setItemId(String itemId) {
this.itemId = itemId;
}
@ -97,8 +98,6 @@ public class GeoNaItemRef implements Serializable {
this.itemName = itemName;
}
/**
* Gets the restricted link.
*
@ -157,6 +156,4 @@ public class GeoNaItemRef implements Serializable {
return builder.toString();
}
}