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.String city  
    private @NotBlank java.lang.String color  
    private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(500L) int engine  
    private @NotBlank java.lang.String image  
    private @NotBlank java.lang.String mark  
    private @NotBlank java.lang.String model  
    private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(40L) float money  
    private @NotBlank java.lang.String type  
    private @javax.validation.constraints.NotNull,@javax.validation.constraints.Min(1980L) int yearProduction  
  • 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()