├── src
├── test
│ ├── resources
│ │ └── .gitkeep
│ └── java
│ │ └── org
│ │ └── mybatis
│ │ └── jpetstore
│ │ ├── web
│ │ └── actions
│ │ │ ├── OrderActionBeanTest.java
│ │ │ ├── AccountActionBeanTest.java
│ │ │ └── CatalogActionBeanTest.java
│ │ ├── mapper
│ │ ├── SequenceMapperTest.java
│ │ ├── MapperTestContext.java
│ │ ├── LineItemMapperTest.java
│ │ ├── CategoryMapperTest.java
│ │ ├── ProductMapperTest.java
│ │ └── ItemMapperTest.java
│ │ ├── service
│ │ ├── AccountServiceTest.java
│ │ └── CatalogServiceTest.java
│ │ └── domain
│ │ ├── OrderTest.java
│ │ └── CartTest.java
├── main
│ ├── webapp
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── images
│ │ │ ├── cart.gif
│ │ │ ├── cat1.gif
│ │ │ ├── cat2.gif
│ │ │ ├── dog1.gif
│ │ │ ├── dog2.gif
│ │ │ ├── dog3.gif
│ │ │ ├── dog4.gif
│ │ │ ├── dog5.gif
│ │ │ ├── dog6.gif
│ │ │ ├── dogs.gif
│ │ │ ├── fish.gif
│ │ │ ├── bird1.gif
│ │ │ ├── bird2.gif
│ │ │ ├── fish1.gif
│ │ │ ├── fish2.gif
│ │ │ ├── fish3.gif
│ │ │ ├── fish4.gif
│ │ │ ├── snake1.gif
│ │ │ ├── splash.gif
│ │ │ ├── cats_icon.gif
│ │ │ ├── dogs_icon.gif
│ │ │ ├── fish_icon.gif
│ │ │ ├── lizard1.gif
│ │ │ ├── poweredby.gif
│ │ │ ├── separator.gif
│ │ │ ├── sm_birds.gif
│ │ │ ├── sm_cats.gif
│ │ │ ├── sm_dogs.gif
│ │ │ ├── sm_fish.gif
│ │ │ ├── banner_cats.gif
│ │ │ ├── banner_dogs.gif
│ │ │ ├── banner_fish.gif
│ │ │ ├── birds_icon.gif
│ │ │ ├── logo-topbar.gif
│ │ │ ├── sm_reptiles.gif
│ │ │ ├── banner_birds.gif
│ │ │ ├── reptiles_icon.gif
│ │ │ └── banner_reptiles.gif
│ │ ├── WEB-INF
│ │ │ ├── jsp
│ │ │ │ ├── common
│ │ │ │ │ ├── Error.jsp
│ │ │ │ │ ├── IncludeBottom.jsp
│ │ │ │ │ └── IncludeTop.jsp
│ │ │ │ ├── cart
│ │ │ │ │ ├── IncludeMyList.jsp
│ │ │ │ │ ├── Checkout.jsp
│ │ │ │ │ └── Cart.jsp
│ │ │ │ ├── account
│ │ │ │ │ ├── SignonForm.jsp
│ │ │ │ │ ├── NewAccountForm.jsp
│ │ │ │ │ ├── EditAccountForm.jsp
│ │ │ │ │ └── IncludeAccountFields.jsp
│ │ │ │ ├── order
│ │ │ │ │ ├── ListOrders.jsp
│ │ │ │ │ ├── ShippingForm.jsp
│ │ │ │ │ ├── NewOrderForm.jsp
│ │ │ │ │ ├── ConfirmOrder.jsp
│ │ │ │ │ └── ViewOrder.jsp
│ │ │ │ └── catalog
│ │ │ │ │ ├── Category.jsp
│ │ │ │ │ ├── SearchProducts.jsp
│ │ │ │ │ ├── Item.jsp
│ │ │ │ │ ├── Product.jsp
│ │ │ │ │ └── Main.jsp
│ │ │ ├── web.xml
│ │ │ └── applicationContext.xml
│ │ └── index.html
│ ├── resources
│ │ ├── StripesResources.properties
│ │ ├── org
│ │ │ └── mybatis
│ │ │ │ └── jpetstore
│ │ │ │ └── mapper
│ │ │ │ ├── SequenceMapper.xml
│ │ │ │ ├── CategoryMapper.xml
│ │ │ │ ├── LineItemMapper.xml
│ │ │ │ ├── ProductMapper.xml
│ │ │ │ ├── ItemMapper.xml
│ │ │ │ ├── OrderMapper.xml
│ │ │ │ └── AccountMapper.xml
│ │ └── database
│ │ │ └── jpetstore-hsqldb-schema.sql
│ └── java
│ │ └── org
│ │ └── mybatis
│ │ └── jpetstore
│ │ ├── mapper
│ │ ├── SequenceMapper.java
│ │ ├── CategoryMapper.java
│ │ ├── LineItemMapper.java
│ │ ├── ProductMapper.java
│ │ ├── OrderMapper.java
│ │ ├── ItemMapper.java
│ │ └── AccountMapper.java
│ │ ├── domain
│ │ ├── Sequence.java
│ │ ├── Category.java
│ │ ├── Product.java
│ │ ├── CartItem.java
│ │ ├── LineItem.java
│ │ ├── Cart.java
│ │ ├── Item.java
│ │ └── Account.java
│ │ ├── web
│ │ └── actions
│ │ │ ├── AbstractActionBean.java
│ │ │ └── CartActionBean.java
│ │ └── service
│ │ ├── AccountService.java
│ │ ├── CatalogService.java
│ │ └── OrderService.java
└── site
│ ├── resources
│ ├── images
│ │ ├── en.png
│ │ ├── es.png
│ │ ├── fr.png
│ │ ├── ja.png
│ │ ├── ko.png
│ │ └── zh.png
│ └── css
│ │ └── site.css
│ ├── site_ko.xml
│ ├── site_ja.xml
│ ├── site.xml
│ └── site_es.xml
├── .gitattributes
├── .mvn
├── maven.config
├── extensions.xml
├── wrapper
│ └── maven-wrapper.properties
└── settings.xml
├── Dockerfile
├── renovate.json
├── .gitignore
├── LICENSE_HEADER
├── format.xml
├── docker-compose.yaml
├── deployment-service.yaml
├── .github
└── workflows
│ ├── sonatype.yaml
│ ├── sonar.yaml
│ ├── ci.yaml
│ ├── coveralls.yaml
│ └── support.yaml
├── NOTICE
└── README.md
/src/test/resources/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/src/main/webapp/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/.mvn/maven.config:
--------------------------------------------------------------------------------
1 | -Daether.checksums.algorithms=SHA-512,SHA-256,SHA-1,MD5
2 |
--------------------------------------------------------------------------------
/src/main/webapp/images/cart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/cart.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cat1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/cat1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cat2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/cat2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog3.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog4.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog5.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dog6.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/bird1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/bird1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/bird2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/bird2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish3.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish4.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/snake1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/snake1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/splash.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/splash.gif
--------------------------------------------------------------------------------
/src/site/resources/images/en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/en.png
--------------------------------------------------------------------------------
/src/site/resources/images/es.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/es.png
--------------------------------------------------------------------------------
/src/site/resources/images/fr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/fr.png
--------------------------------------------------------------------------------
/src/site/resources/images/ja.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/ja.png
--------------------------------------------------------------------------------
/src/site/resources/images/ko.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/ko.png
--------------------------------------------------------------------------------
/src/site/resources/images/zh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/site/resources/images/zh.png
--------------------------------------------------------------------------------
/src/main/webapp/images/cats_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/cats_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dogs_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/dogs_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/fish_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/lizard1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/lizard1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/poweredby.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/poweredby.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/separator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/separator.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_birds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/sm_birds.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_cats.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/sm_cats.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/sm_dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/sm_fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_cats.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/banner_cats.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/banner_dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/banner_fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/birds_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/birds_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/logo-topbar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/logo-topbar.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_reptiles.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/sm_reptiles.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_birds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/banner_birds.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/reptiles_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/reptiles_icon.gif
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM openjdk:17.0.2
2 | COPY . /usr/src/myapp
3 | WORKDIR /usr/src/myapp
4 | RUN ./mvnw clean package
5 | CMD ./mvnw cargo:run -P tomcat90
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": [
4 | "config:base"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_reptiles.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jaiswaladi246/jpetstore-6/HEAD/src/main/webapp/images/banner_reptiles.gif
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.settings
3 | /.classpath
4 | /.project
5 | /.idea
6 | *.iml
7 | /build
8 | .mvn/wrapper/maven-wrapper.jar
9 | *.releaseBackup
10 | *.properties
11 | .env
--------------------------------------------------------------------------------
/LICENSE_HEADER:
--------------------------------------------------------------------------------
1 | Copyright ${license.git.copyrightYears} the original author or authors.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | https://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/src/main/resources/StripesResources.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2010-2022 the original author or authors.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # https://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 |
--------------------------------------------------------------------------------
/format.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/common/Error.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 |
3 | Copyright 2010-2022 the original author or authors.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | https://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 |
17 | --%>
18 | <%@ include file="../common/IncludeTop.jsp"%>
19 |
20 |
21 |
22 | <%@ include file="../common/IncludeBottom.jsp"%>
--------------------------------------------------------------------------------
/docker-compose.yaml:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2010-2023 the original author or authors.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # https://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | version: "3.9"
18 |
19 | services:
20 | jpetstore:
21 | container_name: jpetstore
22 | build:
23 | context: .
24 | ports:
25 | - 8080:8080
26 | restart: always
27 |
--------------------------------------------------------------------------------
/.mvn/extensions.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | fr.jcgay.maven
22 | maven-profiler
23 | 3.2
24 |
25 |
26 |
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
18 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
19 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/SequenceMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2022 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.mybatis.jpetstore.mapper;
17 |
18 | import org.mybatis.jpetstore.domain.Sequence;
19 |
20 | /**
21 | * The Interface SequenceMapper.
22 | *
23 | * @author Eduardo Macarron
24 | */
25 | public interface SequenceMapper {
26 |
27 | Sequence getSequence(Sequence sequence);
28 |
29 | void updateSequence(Sequence sequence);
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/CategoryMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2022 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.mybatis.jpetstore.mapper;
17 |
18 | import java.util.List;
19 |
20 | import org.mybatis.jpetstore.domain.Category;
21 |
22 | /**
23 | * The Interface CategoryMapper.
24 | *
25 | * @author Eduardo Macarron
26 | */
27 | public interface CategoryMapper {
28 |
29 | List getCategoryList();
30 |
31 | Category getCategory(String categoryId);
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/LineItemMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2022 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.mybatis.jpetstore.mapper;
17 |
18 | import java.util.List;
19 |
20 | import org.mybatis.jpetstore.domain.LineItem;
21 |
22 | /**
23 | * The Interface LineItemMapper.
24 | *
25 | * @author Eduardo Macarron
26 | */
27 | public interface LineItemMapper {
28 |
29 | List getLineItemsByOrderId(int orderId);
30 |
31 | void insertLineItem(LineItem lineItem);
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/deployment-service.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: apps/v1
2 | kind: Deployment # Kubernetes resource kind we are creating
3 | metadata:
4 | name: jpetstore-deployment
5 | spec:
6 | selector:
7 | matchLabels:
8 | app: jpetstore
9 | replicas: 2 # Number of replicas that will be created for this deployment
10 | template:
11 | metadata:
12 | labels:
13 | app: jpetstore
14 | spec:
15 | containers:
16 | - name: jpetstore
17 | image: adijaiswal/cicddevops:6 # Image that will be used to containers in the cluster
18 | imagePullPolicy: IfNotPresent
19 | ports:
20 | - containerPort: 8080 # The port that the container is running on in the cluster
21 |
22 |
23 | ---
24 |
25 | apiVersion: v1 # Kubernetes API version
26 | kind: Service # Kubernetes resource kind we are creating
27 | metadata: # Metadata of the resource kind we are creating
28 | name: jpetstore-ssvc
29 | spec:
30 | selector:
31 | app: jpetstore
32 | ports:
33 | - protocol: "TCP"
34 | port: 8080 # The port that the service is running on in the cluster
35 | targetPort: 8080 # The port exposed by the service
36 | type: LoadBalancer # type of the service.
37 |
--------------------------------------------------------------------------------
/src/site/site_ko.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/ProductMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2022 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.mybatis.jpetstore.mapper;
17 |
18 | import java.util.List;
19 |
20 | import org.mybatis.jpetstore.domain.Product;
21 |
22 | /**
23 | * The Interface ProductMapper.
24 | *
25 | * @author Eduardo Macarron
26 | */
27 | public interface ProductMapper {
28 |
29 | List getProductListByCategory(String categoryId);
30 |
31 | Product getProduct(String productId);
32 |
33 | List searchProductList(String keywords);
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/OrderMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010-2022 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.mybatis.jpetstore.mapper;
17 |
18 | import java.util.List;
19 |
20 | import org.mybatis.jpetstore.domain.Order;
21 |
22 | /**
23 | * The Interface OrderMapper.
24 | *
25 | * @author Eduardo Macarron
26 | */
27 | public interface OrderMapper {
28 |
29 | List getOrdersByUsername(String username);
30 |
31 | Order getOrder(int orderId);
32 |
33 | void insertOrder(Order order);
34 |
35 | void insertOrderStatus(Order order);
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/src/site/site_ja.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/site/site.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/site/site_es.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/common/IncludeBottom.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 |
3 | Copyright 2010-2022 the original author or authors.
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | https://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 |
17 | --%>
18 |
19 |
20 |
34 |
35 |