Package com.Server.entiy
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.Stringcolorprivate @javax.validation.constraints.NotNull intengineCapacityprivate intidcarprivate @NotNull java.lang.Stringimageprivate Localizationlocalizationlocalizationprivate @NotNull java.lang.Stringmarkprivate @NotNull java.lang.Stringmodelprivate @javax.validation.constraints.NotNull floatmoneyprivate java.util.List<Reservation>reservationprivate @NotNull TypeCartypeprivate @javax.validation.constraints.NotNull intyearProduction -
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
-
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
-
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 Namemodel- Car Model Nametype- Car Type NameyearProduction- Year of car productioncolor- Color of CarengineCapacity- Car Engine Capacitymoney- Money for the Carlocalization- Car Locationimage- Url to photo of the Car
-