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 | |
---|
1 | package com.example.salonbella.controller.cart;
|
---|
2 |
|
---|
3 | import com.example.salonbella.entity.CartDetailEntity;
|
---|
4 | import org.springframework.context.annotation.Scope;
|
---|
5 | import org.springframework.context.annotation.ScopedProxyMode;
|
---|
6 | import org.springframework.stereotype.Component;
|
---|
7 |
|
---|
8 | import java.io.Serializable;
|
---|
9 | import java.util.ArrayList;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Component
|
---|
13 | @Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
|
---|
14 | public 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.