Class Car

java.lang.Object
com.Server.entiy.Car

@Entity
public class Car
extends java.lang.Object
Entity car to store Users data.
Since:
2020-04-27.
Version:
2.0.
Author:
Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private @NotNull java.lang.String color  
    private @javax.validation.constraints.NotNull int engineCapacity  
    private int idcar  
    private @NotNull java.lang.String image  
    private Localization localization
    localization
    private @NotNull java.lang.String mark  
    private @NotNull java.lang.String model  
    private @javax.validation.constraints.NotNull float money  
    private java.util.List<Reservation> reservation  
    private @NotNull TypeCar type  
    private @javax.validation.constraints.NotNull int yearProduction  
  • Constructor Summary

    Constructors
    Constructor Description
    Car​(java.lang.String mark, java.lang.String model, TypeCar type, int yearProduction, java.lang.String color, int engineCapacity, float money, Localization localization, java.lang.String image)
    Constructor Class Car
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • idcar

      private int idcar
    • mark

      @NotNull private @NotNull java.lang.String mark
    • model

      @NotNull private @NotNull java.lang.String model
    • type

      @NotNull private @NotNull TypeCar type
    • yearProduction

      @NotNull private @javax.validation.constraints.NotNull int yearProduction
    • color

      @NotNull private @NotNull java.lang.String color
    • engineCapacity

      @NotNull private @javax.validation.constraints.NotNull int engineCapacity
    • money

      @NotNull private @javax.validation.constraints.NotNull float money
    • image

      @NotNull private @NotNull java.lang.String image
    • reservation

      private java.util.List<Reservation> reservation
    • localization

      private Localization localization
      localization
  • Constructor Details

    • Car

      public Car​(java.lang.String mark, java.lang.String model, TypeCar type, int yearProduction, java.lang.String color, int engineCapacity, float money, Localization localization, java.lang.String image)
      Constructor Class Car
      Parameters:
      mark - Car Brand Name
      model - Car Model Name
      type - Car Type Name
      yearProduction - Year of car production
      color - Color of Car
      engineCapacity - Car Engine Capacity
      money - Money for the Car
      localization - Car Location
      image - Url to photo of the Car