Commit 6bba8e9b authored by Ondřej Pavlica's avatar Ondřej Pavlica
Browse files

Minor annotation fixes

parent 399f5e6f
Pipeline #132058 passed with stages
in 2 minutes and 46 seconds
package cz.muni.fi.pa165.winery.dto.review;
import cz.muni.fi.pa165.winery.dto.PersistentDtoBase;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
......@@ -12,6 +13,7 @@ import javax.validation.constraints.Min;
*/
@Getter
@Setter
@EqualsAndHashCode
public class ProductReviewDto extends PersistentDtoBase {
/**
......
......@@ -2,6 +2,7 @@ package cz.muni.fi.pa165.winery.dto.user;
import cz.muni.fi.pa165.winery.dto.PersistentDtoBase;
import cz.muni.fi.pa165.winery.enums.UserRoleType;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
......@@ -18,6 +19,7 @@ import java.util.Set;
@Getter
@Setter
@EqualsAndHashCode
public class UserDto extends PersistentDtoBase {
/**
* User's first name (forename).
......
......@@ -2,6 +2,7 @@ package cz.muni.fi.pa165.winery.dto.user;
import cz.muni.fi.pa165.winery.dto.PersistentDtoBase;
import cz.muni.fi.pa165.winery.enums.UserRoleType;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
......@@ -13,6 +14,7 @@ import javax.validation.constraints.NotNull;
@Getter
@Setter
@EqualsAndHashCode
public class UserRoleDto extends PersistentDtoBase {
/***
* User's role type.
......
package cz.muni.fi.pa165.winery.dto.wine;
import cz.muni.fi.pa165.winery.dto.PersistentDtoBase;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
......@@ -12,6 +13,7 @@ import java.math.BigDecimal;
*/
@Getter
@Setter
@EqualsAndHashCode
public class WineBottleDto extends PersistentDtoBase {
/**
......
package cz.muni.fi.pa165.winery.dto.wine;
import cz.muni.fi.pa165.winery.dto.PersistentDtoBase;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
......@@ -12,6 +13,7 @@ import javax.validation.constraints.Pattern;
*/
@Getter
@Setter
@EqualsAndHashCode
public class WineTypeDto extends PersistentDtoBase {
/**
......
......@@ -13,6 +13,7 @@ import cz.muni.fi.pa165.winery.persistence.entities.OrderItem;
import cz.muni.fi.pa165.winery.persistence.entities.WineBottle;
import cz.muni.fi.pa165.winery.services.PersistenceServiceImpl;
import cz.muni.fi.pa165.winery.services.mappers.EntityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -25,6 +26,7 @@ public class OrderServiceImpl extends PersistenceServiceImpl<OrderDto, Order> im
private final EntityMapper<OrderItemDto, OrderItem> orderItemMapper;
private final EntityMapper<WineBottleDto, WineBottle> wineBottleMapper;
@Autowired
public OrderServiceImpl(
OrderDao orderDao,
EntityMapper<OrderDto, Order> orderMapper,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment