Class OrdersConverter

java.lang.Object
com.glowmart.shop_management.converter.OrdersConverter

public class OrdersConverter extends Object
Utility class for converting between Orders and OrdersDto.
  • Constructor Details

    • OrdersConverter

      public OrdersConverter()
  • Method Details

    • convertToOrders

      public static Orders convertToOrders(OrdersDto ordersDto)
      Converts an OrdersDto object to an Orders entity.
      Parameters:
      ordersDto - The DTO to be converted.
      Returns:
      The corresponding Orders entity.
    • convertToOrdersDto

      public static OrdersDto convertToOrdersDto(Orders orders)
      Converts an Orders entity to an OrdersDto.
      Parameters:
      orders - The entity to be converted.
      Returns:
      The corresponding OrdersDto.