source: src/main/java/com/example/salonbella/controller/cart/ShoppingCart.java@ 4d7e387

Last change on this file since 4d7e387 was 4d7e387, checked in by makyjovanovsky <mjovanovski04@…>, 18 months ago

commit 1

  • Property mode set to 100644
File size: 813 bytes
Line 
1package com.example.salonbella.controller.cart;
2
3import com.example.salonbella.entity.CartDetailEntity;
4import org.springframework.context.annotation.Scope;
5import org.springframework.context.annotation.ScopedProxyMode;
6import org.springframework.stereotype.Component;
7
8import java.io.Serializable;
9import java.util.ArrayList;
10import java.util.List;
11
12@Component
13@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
14public class ShoppingCart implements Serializable {
15 private List<CartDetailEntity> cartDetailEntities = new ArrayList<>();
16 public List<CartDetailEntity> getCartDetails() {
17 return cartDetailEntities;
18 }
19
20 @Override
21 public String toString() {
22 return "ShoppingCart{" +
23 "cartDetails=" + cartDetailEntities +
24 '}';
25 }
26}
Note: See TracBrowser for help on using the repository browser.