@@ -15,6 +15,7 @@ import lombok.experimental.Accessors; | |||
import org.hibernate.validator.constraints.Length; | |||
import org.springframework.format.annotation.DateTimeFormat; | |||
import javax.validation.constraints.NotBlank; | |||
import javax.validation.constraints.NotEmpty; | |||
/** | |||
@@ -46,6 +47,7 @@ public class TauvEquipment extends Entity { | |||
/** | |||
* 品牌 | |||
*/ | |||
@NotEmpty(message = "品牌不能为空") | |||
@Length(max = 100, message = "品牌长度不能超过100个字") | |||
private String brand; | |||