package com.jambit.feuermoni.model;


import javax.persistence.Embeddable;
import javax.validation.constraints.Min;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Embeddable
@Getter
@Setter
@ToString
public class VitalSigns {

    @Min(-1)
    private int heartRate;

    @Min(-1)
    private int stepCount;
}

package com.jambit.feuermoni.model;


import javax.persistence.Embeddable;
import javax.validation.constraints.Min;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Embeddable
@Getter
@Setter
@ToString
public class VitalSigns {

    @Min(0)
    private int heartRate;

    @Min(0)
    private int stepCount;
}

--- 
+++ 
@@ -15,9 +15,9 @@
 @ToString
 public class VitalSigns {
 
-    @Min(0)
+    @Min(-1)
     private int heartRate;
 
-    @Min(0)
+    @Min(-1)
     private int stepCount;
 }
Allow -1 as special values meaning 'no data'
