@@ -0,0 +1,1583 @@
+package pv168.hotelmasters.superhotel.backend.impl;%0A%0Aimport pv168.hotelmasters.superhotel.backend.entities.Accommodation;%0Aimport pv168.hotelmasters.superhotel.backend.entities.Guest;%0Aimport pv168.hotelmasters.superhotel.backend.entities.Room;%0A%0Aimport java.time.ZonedDateTime;%0A%0A/**%0A * @author Kristian Lesko%0A */%0Apublic class AccommodationFactory %7B%0A    private Long id;%0A    private Guest guest;%0A    private Room room;%0A    private ZonedDateTime dateFrom;%0A    private ZonedDateTime dateTo;%0A    private Double totalPrice;%0A%0A    public AccommodationFactory id(Long id) %7B%0A        this.id = id;%0A        return this;%0A    %7D%0A%0A    public AccommodationFactory guest(Guest guest) %7B%0A        this.guest = guest;%0A        return this;%0A    %7D%0A%0A    public AccommodationFactory room(Room room) %7B%0A        this.room = room;%0A        return this;%0A    %7D%0A%0A    public AccommodationFactory dateFrom(ZonedDateTime dateFrom) %7B%0A        this.dateFrom = dateFrom;%0A        return this;%0A    %7D%0A%0A    public AccommodationFactory dateTo(ZonedDateTime dateTo) %7B%0A        this.dateTo = dateTo;%0A        return this;%0A    %7D%0A%0A    public AccommodationFactory totalPrice(double totalPrice) %7B%0A        this.totalPrice = totalPrice;%0A        return this;%0A    %7D%0A%0A    public Accommodation build() %7B%0A        Accommodation accommodation = new Accommodation();%0A        accommodation.setId(id);%0A        accommodation.setGuest(guest);%0A        accommodation.setRoom(room);%0A        accommodation.setDateFrom(dateFrom);%0A        accommodation.setDateTo(dateTo);%0A        accommodation.setTotalPrice(totalPrice);%0A        return accommodation;%0A    %7D%0A%7D%0A

Create AccommodationFactory