io.bitsensor.lib.entity.Identifiable Maven / Gradle / Ivy
package io.bitsensor.lib.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
public class Identifiable {
@JsonProperty(value = "_id")
private String identifier;
@JsonUnwrapped
private T identifiable;
public Identifiable() {
}
public Identifiable(String identifier, T identifiable) {
this.setIdentifier(identifier);
this.setIdentifiable(identifiable);
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public T getIdentifiable() {
return identifiable;
}
public void setIdentifiable(T identifiable) {
this.identifiable = identifiable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy