Package com.Server.dto.Request
Class CarRequest
java.lang.Object
com.Server.dto.Request.CarRequest
- All Implemented Interfaces:
java.io.Serializable
public class CarRequest
extends java.lang.Object
implements java.io.Serializable
Class DTO use to add car.
- Since:
- 2020-04-27.
- Version:
- 2.0.
- Author:
- Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private @NotBlank java.lang.Stringcityprivate @NotBlank java.lang.Stringcolorprivate @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(500L) intengineprivate @NotBlank java.lang.Stringimageprivate @NotBlank java.lang.Stringmarkprivate @NotBlank java.lang.Stringmodelprivate @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(40L) floatmoneyprivate @NotBlank java.lang.Stringtypeprivate @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(1980L) intyearProduction -
Constructor Summary
Constructors Constructor Description CarRequest() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
mark
@NotBlank private @NotBlank java.lang.String mark -
model
@NotBlank private @NotBlank java.lang.String model -
type
@NotBlank private @NotBlank java.lang.String type -
yearProduction
@NotNull @Min(1980L) private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(1980L) int yearProduction -
color
@NotBlank private @NotBlank java.lang.String color -
engine
@NotNull @Min(500L) private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(500L) int engine -
city
@NotBlank private @NotBlank java.lang.String city -
money
@NotNull @Min(40L) private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(40L) float money -
image
@NotBlank private @NotBlank java.lang.String image
-
-
Constructor Details
-
CarRequest
public CarRequest()
-