service-binding-app/spring-sensors-consumer/src/main/java/org/tanzu/demo/SensorData.java
<reponame>JeffreyWa/tap-sit-pipelinepackage org.tanzu.demo;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;

@Entity
public class SensorData {

    @Id
    private UUID id;
    private double temperature;
    private double pressure;

    public SensorData() {
    }

    public SensorData(UUID id, double temperature, double pressure) {
        this.id = id;
        this.temperature = temperature;
        this.pressure = pressure;
    }

    public UUID getId() {
        return id;
    }

    public double getTemperature() {
        return temperature;
    }

    public double getPressure() {
        return pressure;
    }
}
