2022-04-11 17:23:27 +02:00
|
|
|
package org.gcube.application.geoportal.common.model.document.identification;
|
|
|
|
|
2023-04-18 10:33:22 +02:00
|
|
|
import org.bson.Document;
|
|
|
|
|
2022-04-11 17:23:27 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
2023-04-18 10:33:22 +02:00
|
|
|
|
2022-04-11 17:23:27 +02:00
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import lombok.ToString;
|
|
|
|
|
|
|
|
@ToString(callSuper = true)
|
|
|
|
@NoArgsConstructor
|
|
|
|
public class IdentificationReference extends Document {
|
|
|
|
|
|
|
|
public static final String TYPE="_type";
|
|
|
|
|
|
|
|
public IdentificationReference(String type) {
|
|
|
|
setType(type);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
public String getType(){return super.getString(TYPE);}
|
|
|
|
@JsonIgnore
|
|
|
|
public void setType(String type){super.put(TYPE,type);}
|
|
|
|
}
|