├── 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
│ │ │ ├── bird1.gif
│ │ │ ├── bird2.gif
│ │ │ ├── cart.gif
│ │ │ ├── cat1.gif
│ │ │ ├── cat2.gif
│ │ │ ├── dog1.gif
│ │ │ ├── dog2.gif
│ │ │ ├── dog3.gif
│ │ │ ├── dog4.gif
│ │ │ ├── dog5.gif
│ │ │ ├── dog6.gif
│ │ │ ├── dogs.gif
│ │ │ ├── fish.gif
│ │ │ ├── fish1.gif
│ │ │ ├── fish2.gif
│ │ │ ├── fish3.gif
│ │ │ ├── fish4.gif
│ │ │ ├── snake1.gif
│ │ │ ├── splash.gif
│ │ │ ├── lizard1.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
│ │ │ ├── cats_icon.gif
│ │ │ ├── dogs_icon.gif
│ │ │ ├── fish_icon.gif
│ │ │ ├── logo-topbar.gif
│ │ │ ├── poweredby.gif
│ │ │ ├── separator.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
│ │ ├── log4j.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
├── .gitignore
├── .mvn
└── wrapper
│ ├── maven-wrapper.properties
│ └── MavenWrapperDownloader.java
├── license.txt
├── format.xml
├── Jenkinsfile
├── travis
├── settings.xml
└── after_success.sh
├── .travis.yml
├── 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 |
--------------------------------------------------------------------------------
/src/main/webapp/images/bird1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/bird1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/bird2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/bird2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/cart.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cat1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/cat1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cat2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/cat2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog3.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog4.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog5.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dog6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dog6.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish2.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish3.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish4.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/snake1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/snake1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/splash.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/splash.gif
--------------------------------------------------------------------------------
/src/site/resources/images/en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/en.png
--------------------------------------------------------------------------------
/src/site/resources/images/es.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/es.png
--------------------------------------------------------------------------------
/src/site/resources/images/fr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/fr.png
--------------------------------------------------------------------------------
/src/site/resources/images/ja.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/ja.png
--------------------------------------------------------------------------------
/src/site/resources/images/ko.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/ko.png
--------------------------------------------------------------------------------
/src/site/resources/images/zh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/site/resources/images/zh.png
--------------------------------------------------------------------------------
/src/main/webapp/images/lizard1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/lizard1.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_birds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/sm_birds.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_cats.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/sm_cats.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/sm_dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/sm_fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_cats.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/banner_cats.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_dogs.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/banner_dogs.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/banner_fish.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/birds_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/birds_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/cats_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/cats_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/dogs_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/dogs_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/fish_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/fish_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/logo-topbar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/logo-topbar.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/poweredby.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/poweredby.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/separator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/separator.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/sm_reptiles.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/sm_reptiles.gif
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.settings
3 | /.classpath
4 | /.project
5 | /.idea
6 | *.iml
7 | /build
8 | .mvn/wrapper/maven-wrapper.jar
9 |
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_birds.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/banner_birds.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/reptiles_icon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/reptiles_icon.gif
--------------------------------------------------------------------------------
/src/main/webapp/images/banner_reptiles.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/catfood/jpetstore-6/master/src/main/webapp/images/banner_reptiles.gif
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
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 | http://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-2016 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 | # http://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 |
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 | pipeline {
2 | agent any
3 | stages {
4 | stage ('Compile') {
5 | steps {
6 | sh 'mvn compile'
7 | }
8 | }
9 | stage ('Test') {
10 | steps {
11 | sh 'mvn test'
12 | }
13 | post {
14 | always {
15 | junit '**/target/surefire-reports/TEST-*.xml'
16 | }
17 | }
18 | }
19 | stage ('Deploy') {
20 | steps {
21 | sh 'mvn deploy -DskipITs'
22 | }
23 | post {
24 | always {
25 | dependencyCheckPublisher pattern: '**/target/dependency-check-report.xml'
26 | archiveArtifacts artifacts: '**/target/*.war', onlyIfSuccessful: true
27 | }
28 | }
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/jsp/common/Error.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 |
3 | Copyright 2010-2016 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 | http://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"%>
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/SequenceMapper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-2017 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 | * http://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-2017 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 | * http://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-2017 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 | * http://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 |
--------------------------------------------------------------------------------
/src/site/site_ko.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2010-2016 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 | # http://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 | # Rules reminder:
18 | # DEBUG < INFO < WARN < ERROR < FATAL
19 |
20 | # Global logging configuration
21 | log4j.rootLogger=WARN, stdout
22 |
23 | # My logging configuration...
24 | log4j.logger.org.mybatis.jpetstore=TRACE
25 | log4j.logger.org.mybatis.spring=TRACE
26 |
27 | ## Console output...
28 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
29 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
30 | log4j.appender.stdout.layout.ConversionPattern=%r [%t] %-5p %c %x - %m%n
31 |
--------------------------------------------------------------------------------
/src/main/java/org/mybatis/jpetstore/mapper/ProductMapper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2010-2017 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 | * http://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-2017 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 | * http://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-2016 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 | http://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 |