You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by cb...@apache.org on 2005/12/06 07:42:07 UTC
svn commit: r354337 [1/9] - in /ibatis/trunk/java/jpetstore/jpetstore5: ./
build/ devlib/ doc/ lib/ src/ src/com/ src/com/ibatis/
src/com/ibatis/jpetstore/ src/com/ibatis/jpetstore/domain/
src/com/ibatis/jpetstore/persistence/ src/com/ibatis/jpetstore/...
Author: cbegin
Date: Mon Dec 5 22:39:31 2005
New Revision: 354337
URL: http://svn.apache.org/viewcvs?rev=354337&view=rev
Log:
Importing JPetStore 5.0
Added:
ibatis/trunk/java/jpetstore/jpetstore5/
ibatis/trunk/java/jpetstore/jpetstore5/build/
ibatis/trunk/java/jpetstore/jpetstore5/build/ant.bat
ibatis/trunk/java/jpetstore/jpetstore5/build/build.bat
ibatis/trunk/java/jpetstore/jpetstore5/build/build.xml
ibatis/trunk/java/jpetstore/jpetstore5/build/clean.bat
ibatis/trunk/java/jpetstore/jpetstore5/build/setenv.bat
ibatis/trunk/java/jpetstore/jpetstore5/devlib/
ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-junit.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-launcher.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/cglib-nodep-2.1_3.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma_ant.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-1.0.1.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-cglib-1.0.1.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/junit.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/devlib/servlet.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/doc/
ibatis/trunk/java/jpetstore/jpetstore5/doc/License.txt
ibatis/trunk/java/jpetstore/jpetstore5/doc/Versions.txt
ibatis/trunk/java/jpetstore/jpetstore5/lib/
ibatis/trunk/java/jpetstore/jpetstore5/lib/antlr.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/beanaction.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-beanutils.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-digester.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-fileupload.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-logging.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-validator.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/hsqldb.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-common-2.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-dao-2.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-sqlmap-2.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/jakarta-oro.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/lib/struts.jar (with props)
ibatis/trunk/java/jpetstore/jpetstore5/src/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Account.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Cart.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/CartItem.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Category.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Item.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/LineItem.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Order.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Product.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Sequence.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/DaoConfig.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/dao.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/AccountDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/CategoryDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ItemDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/OrderDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ProductDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/SequenceDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/AccountSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/BaseSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/CategorySqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/ItemSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/OrderSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/ProductSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/SequenceSqlMapDao.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Account.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Category.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Item.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/LineItem.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Order.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Product.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/Sequence.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/sql/sql-map-config.xml
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/AbstractBean.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/AccountBean.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/CartBean.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/CatalogBean.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/presentation/OrderBean.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/service/
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/service/AccountService.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/service/CatalogService.java
ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/service/OrderService.java
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/hsql/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/hsql/jpetstore-hsqldb-dataload.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/hsql/jpetstore-hsqldb-schema.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mssql/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mssql/jpetstore-mssql-dataload.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mssql/jpetstore-mssql-schema.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mysql/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mysql/jpetstore-mysql-create-user.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mysql/jpetstore-mysql-dataload.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/mysql/jpetstore-mysql-schema.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/oracle/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/oracle/jpetstore-oracle-dataload.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/oracle/jpetstore-oracle-schema.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/postgres/
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/postgres/jpetstore-postgres-dataload.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/ddl/postgres/jpetstore-postgres-schema.sql
ibatis/trunk/java/jpetstore/jpetstore5/src/properties/
ibatis/trunk/java/jpetstore/jpetstore5/src/properties/database.properties
ibatis/trunk/java/jpetstore/jpetstore5/src/properties/messages.properties
ibatis/trunk/java/jpetstore/jpetstore5/test/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/domain/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/domain/BeanTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/domain/DomainFixture.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/AccountDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/BasePersistenceTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/CategoryDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/ItemDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/OrderDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/PersistenceFixture.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/ProductDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/persistence/SequenceDaoTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/presentation/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/presentation/AccountBeanTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/presentation/CartBeanTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/presentation/CatalogBeanTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/presentation/OrderBeanTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/service/
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/service/AccountServiceTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/service/CatalogServiceTest.java
ibatis/trunk/java/jpetstore/jpetstore5/test/com/ibatis/jpetstore/service/OrderServiceTest.java
ibatis/trunk/java/jpetstore/jpetstore5/web/
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/struts-config.xml
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/struts-bean.tld
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/struts-html.tld
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/struts-logic.tld
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/struts-nested.tld
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/tld/struts-tiles.tld
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/validation.xml
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/validator-rules.xml
ibatis/trunk/java/jpetstore/jpetstore5/web/WEB-INF/web.xml
ibatis/trunk/java/jpetstore/jpetstore5/web/account/
ibatis/trunk/java/jpetstore/jpetstore5/web/account/EditAccountForm.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/account/IncludeAccountFields.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/account/NewAccountForm.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/account/SignonForm.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/cart/
ibatis/trunk/java/jpetstore/jpetstore5/web/cart/Cart.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/cart/Checkout.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/cart/IncludeMyList.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/Category.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/Item.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/Main.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/Product.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/catalog/SearchProducts.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/common/
ibatis/trunk/java/jpetstore/jpetstore5/web/common/Error.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/common/IncludeBottom.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/common/IncludeTop.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/css/
ibatis/trunk/java/jpetstore/jpetstore5/web/css/jpetstore.css
ibatis/trunk/java/jpetstore/jpetstore5/web/help.html
ibatis/trunk/java/jpetstore/jpetstore5/web/images/
ibatis/trunk/java/jpetstore/jpetstore5/web/images/banner_birds.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/banner_cats.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/banner_dogs.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/banner_fish.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/banner_reptiles.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/bird1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/bird2.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/birds_icon.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/cart.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/cat1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/cat2.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/cats_icon.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog2.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog3.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog4.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog5.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dog6.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dogs.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/dogs_icon.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish2.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish3.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish4.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/fish_icon.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/lizard1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/logo-topbar.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/poweredby.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/reptiles_icon.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/separator.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/sm_birds.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/sm_cats.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/sm_dogs.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/sm_fish.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/sm_reptiles.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/snake1.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/images/splash.gif (with props)
ibatis/trunk/java/jpetstore/jpetstore5/web/index.html
ibatis/trunk/java/jpetstore/jpetstore5/web/order/
ibatis/trunk/java/jpetstore/jpetstore5/web/order/ConfirmOrder.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/order/ListOrders.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/order/NewOrderForm.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/order/ShippingForm.jsp
ibatis/trunk/java/jpetstore/jpetstore5/web/order/ViewOrder.jsp
Added: ibatis/trunk/java/jpetstore/jpetstore5/build/ant.bat
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/build/ant.bat?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/build/ant.bat (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/build/ant.bat Mon Dec 5 22:39:31 2005
@@ -0,0 +1,4 @@
+
+call setenv.bat
+
+%JAVA_HOME%\bin\java -classpath %BUILD_CP% org.apache.tools.ant.Main -buildfile build.xml %1
Added: ibatis/trunk/java/jpetstore/jpetstore5/build/build.bat
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/build/build.bat?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/build/build.bat (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/build/build.bat Mon Dec 5 22:39:31 2005
@@ -0,0 +1,5 @@
+@ECHO off
+
+call ant.bat all
+
+PAUSE
\ No newline at end of file
Added: ibatis/trunk/java/jpetstore/jpetstore5/build/build.xml
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/build/build.xml?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/build/build.xml (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/build/build.xml Mon Dec 5 22:39:31 2005
@@ -0,0 +1,165 @@
+<project name="JPetStore" default="all" basedir=".">
+
+ <property name="web" value="../web"/>
+ <property name="src" value="../src"/>
+ <property name="test" value="../test"/>
+ <property name="lib" value="../lib"/>
+ <property name="devlib" value="../devlib"/>
+
+ <property name="wars" value="wars"/>
+ <property name="warfile" value="${wars}/jpetstore.war"/>
+
+ <property name="webapp" value="webapp"/>
+ <property name="weblib" value="${webapp}/WEB-INF/lib/"/>
+ <property name="webclasses" value="${webapp}/WEB-INF/classes/"/>
+
+ <property name="reports" value="reports"/>
+ <property name="junitreports" value="${reports}/junit/"/>
+ <property name="coveragereports" value="${reports}/coverage/"/>
+
+ <property name="work" value="work"/>
+ <property name="classes" value="${work}/classes/"/>
+ <property name="testclasses" value="${work}/testclasses/"/>
+ <property name="instrumentedclasses" value="${work}/instrumentedclasses/"/>
+
+ <path id="classpath">
+ <pathelement location="${instrumentedclasses}"/>
+ <pathelement location="${classes}"/>
+ <pathelement location="${testclasses}"/>
+ <pathelement location="${src}"/>
+ <pathelement location="${test}"/>
+ <fileset dir="${lib}" includes="**/*.jar"/>
+ <fileset dir="${devlib}" includes="**/*.jar"/>
+ </path>
+
+ <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
+ <taskdef resource="emma_ant.properties" classpathref="classpath"/>
+
+ <target name="clean">
+ <delete dir="${reports}"/>
+ <delete dir="${work}"/>
+ <delete dir="${wars}"/>
+ <delete dir="${webapp}"/>
+ <delete file="coverage.ec"/>
+ <delete>
+ <fileset dir="${src}">
+ <include name="**/*.class"/>
+ </fileset>
+ </delete>
+ <delete>
+ <fileset dir="${test}">
+ <include name="**/*.class"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="prepare" depends="clean">
+ <mkdir dir="${classes}"/>
+ <mkdir dir="${testclasses}"/>
+ <mkdir dir="${instrumentedclasses}"/>
+
+ <mkdir dir="${junitreports}"/>
+ <mkdir dir="${coveragereports}"/>
+
+ <mkdir dir="${webclasses}"/>
+ <mkdir dir="${weblib}"/>
+
+ <mkdir dir="${wars}"/>
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${classes}" deprecation="on" debug="on">
+ <classpath refid="classpath"/>
+ </javac>
+ <javac srcdir="${test}" destdir="${testclasses}" deprecation="on" debug="on">
+ <classpath refid="classpath"/>
+ </javac>
+ </target>
+
+ <target name="coverage.instrument" depends="compile">
+ <emma enabled="yes">
+ <instr instrpath="${classes}"
+ destdir="${instrumentedclasses}"
+ metadatafile="./coverage.ec"
+ merge="true"
+ >
+ </instr>
+ </emma>
+ </target>
+
+ <target name="test" depends="coverage.instrument">
+ <junit printsummary="yes" haltonfailure="no">
+ <classpath refid="classpath"/>
+
+ <formatter type="xml"/>
+
+ <batchtest fork="yes" todir="${junitreports}">
+ <fileset dir="${test}">
+ <include name="**/*Test*.java"/>
+ <exclude name="**/AllTests.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="test.report" depends="test" >
+ <junitreport todir="${junitreports}">
+ <fileset dir="${junitreports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${junitreports}"/>
+ </junitreport>
+ </target>
+
+ <target name="coverage.report" depends="test" >
+ <emma enabled="yes">
+ <report sourcepath="${src}"
+ sort="+block,+name,+method,+class"
+ metrics="method:70,block:80,line:80,class:100"
+ >
+ <fileset dir="./">
+ <include name="*.ec"/>
+ </fileset>
+ <html outfile="${coveragereports}/coverage.html"
+ depth="method"
+ columns="name,class,method,block,line"
+ />
+ </report>
+ </emma>
+ </target>
+
+ <target name="assemble" depends="test">
+ <copy todir="${webclasses}">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.class"/>
+ </fileset>
+ </copy>
+ <copy todir="${webclasses}">
+ <fileset dir="${classes}"/>
+ </copy>
+ <copy todir="${weblib}">
+ <fileset dir="${lib}"/>
+ </copy>
+ <copy todir="${webapp}">
+ <fileset dir="${web}"/>
+ </copy>
+ </target>
+
+ <target name="assembleWebapp">
+ <copy todir="${webapp}">
+ <fileset dir="${web}"/>
+ </copy>
+ </target>
+
+ <target name="war" depends="assemble">
+ <jar jarfile="${warfile}">
+ <fileset dir="${webapp}">
+ <include name="**/*"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="all" depends="test.report, coverage.report, war"/>
+
+</project>
Added: ibatis/trunk/java/jpetstore/jpetstore5/build/clean.bat
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/build/clean.bat?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/build/clean.bat (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/build/clean.bat Mon Dec 5 22:39:31 2005
@@ -0,0 +1,5 @@
+@ECHO off
+
+call ant.bat clean
+
+PAUSE
\ No newline at end of file
Added: ibatis/trunk/java/jpetstore/jpetstore5/build/setenv.bat
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/build/setenv.bat?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/build/setenv.bat (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/build/setenv.bat Mon Dec 5 22:39:31 2005
@@ -0,0 +1,7 @@
+
+set BUILD_CP=%CLASSPATH%
+set BUILD_CP=%BUILD_CP%;%JAVA_HOME%\lib\tools.jar;
+set BUILD_CP=%BUILD_CP%;..\devlib\ant.jar;
+set BUILD_CP=%BUILD_CP%;..\devlib\ant-junit.jar;
+set BUILD_CP=%BUILD_CP%;..\devlib\ant-launcher.jar;
+set BUILD_CP=%BUILD_CP%;..\devlib\junit.jar;
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-junit.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-junit.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-junit.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-launcher.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-launcher.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant-launcher.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/ant.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/cglib-nodep-2.1_3.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/cglib-nodep-2.1_3.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/cglib-nodep-2.1_3.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma_ant.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma_ant.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/emma_ant.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-1.0.1.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-1.0.1.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-1.0.1.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-cglib-1.0.1.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-cglib-1.0.1.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/jmock-cglib-1.0.1.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/junit.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/junit.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/junit.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/devlib/servlet.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/devlib/servlet.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/devlib/servlet.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/doc/License.txt
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/doc/License.txt?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/doc/License.txt (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/doc/License.txt Mon Dec 5 22:39:31 2005
@@ -0,0 +1,202 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Added: ibatis/trunk/java/jpetstore/jpetstore5/doc/Versions.txt
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/doc/Versions.txt?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/doc/Versions.txt (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/doc/Versions.txt Mon Dec 5 22:39:31 2005
@@ -0,0 +1,8 @@
+Apache iBATIS 2.1.6
+Apache Struts 1.2.7
+JUnit 3.8.1
+Ant 1.6.5
+HSQLDB 1.8.0.1
+JMock 1.0.1
+CGLIB 2.1.3
+Emma 2.0.5312
\ No newline at end of file
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/antlr.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/antlr.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/antlr.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/beanaction.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/beanaction.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/beanaction.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-beanutils.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-beanutils.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-beanutils.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-digester.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-digester.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-digester.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-fileupload.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-fileupload.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-fileupload.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-logging.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-logging.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-logging.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-validator.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-validator.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/commons-validator.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/hsqldb.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/hsqldb.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/hsqldb.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-common-2.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-common-2.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-common-2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-dao-2.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-dao-2.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-dao-2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-sqlmap-2.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-sqlmap-2.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/ibatis-sqlmap-2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/jakarta-oro.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/jakarta-oro.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/jakarta-oro.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/lib/struts.jar
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/lib/struts.jar?rev=354337&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ibatis/trunk/java/jpetstore/jpetstore5/lib/struts.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Account.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Account.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Account.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Account.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,171 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+
+
+public class Account implements Serializable {
+
+ private String username;
+ private String password;
+ private String email;
+ private String firstName;
+ private String lastName;
+ private String status;
+ private String address1;
+ private String address2;
+ private String city;
+ private String state;
+ private String zip;
+ private String country;
+ private String phone;
+ private String favouriteCategoryId;
+ private String languagePreference;
+ private boolean listOption;
+ private boolean bannerOption;
+ private String bannerName;
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getAddress1() {
+ return address1;
+ }
+
+ public void setAddress1(String address1) {
+ this.address1 = address1;
+ }
+
+ public String getAddress2() {
+ return address2;
+ }
+
+ public void setAddress2(String address2) {
+ this.address2 = address2;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public String getZip() {
+ return zip;
+ }
+
+ public void setZip(String zip) {
+ this.zip = zip;
+ }
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ public String getFavouriteCategoryId() {
+ return favouriteCategoryId;
+ }
+
+ public void setFavouriteCategoryId(String favouriteCategoryId) {
+ this.favouriteCategoryId = favouriteCategoryId;
+ }
+
+ public String getLanguagePreference() {
+ return languagePreference;
+ }
+
+ public void setLanguagePreference(String languagePreference) {
+ this.languagePreference = languagePreference;
+ }
+
+ public boolean isListOption() {
+ return listOption;
+ }
+
+ public void setListOption(boolean listOption) {
+ this.listOption = listOption;
+ }
+
+ public boolean isBannerOption() {
+ return bannerOption;
+ }
+
+ public void setBannerOption(boolean bannerOption) {
+ this.bannerOption = bannerOption;
+ }
+
+ public String getBannerName() {
+ return bannerName;
+ }
+
+ public void setBannerName(String bannerName) {
+ this.bannerName = bannerName;
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Cart.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Cart.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Cart.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Cart.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,88 @@
+package com.ibatis.jpetstore.domain;
+
+import com.ibatis.common.util.PaginatedArrayList;
+import com.ibatis.common.util.PaginatedList;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.*;
+
+public class Cart implements Serializable {
+
+ private final Map itemMap = Collections.synchronizedMap(new HashMap());
+ private final PaginatedList itemList = new PaginatedArrayList(4);
+
+ public Iterator getCartItems() {
+ return itemList.iterator();
+ }
+
+ public PaginatedList getCartItemList() {
+ return itemList;
+ }
+
+ public int getNumberOfItems() {
+ return itemList.size();
+ }
+
+ public Iterator getAllCartItems() {
+ List allItems = new ArrayList();
+ itemList.gotoPage(0);
+ allItems.addAll(itemList);
+ while (itemList.nextPage()) {
+ allItems.addAll(itemList);
+ }
+ return allItems.iterator();
+ }
+
+ public boolean containsItemId(String itemId) {
+ return itemMap.containsKey(itemId);
+ }
+
+ public void addItem(Item item, boolean isInStock) {
+ CartItem cartItem = (CartItem) itemMap.get(item.getItemId());
+ if (cartItem == null) {
+ cartItem = new CartItem();
+ cartItem.setItem(item);
+ cartItem.setQuantity(0);
+ cartItem.setInStock(isInStock);
+ itemMap.put(item.getItemId(), cartItem);
+ itemList.add(cartItem);
+ }
+ cartItem.incrementQuantity();
+ }
+
+
+ public Item removeItemById(String itemId) {
+ CartItem cartItem = (CartItem) itemMap.remove(itemId);
+ if (cartItem == null) {
+ return null;
+ } else {
+ itemList.remove(cartItem);
+ return cartItem.getItem();
+ }
+ }
+
+ public void incrementQuantityByItemId(String itemId) {
+ CartItem cartItem = (CartItem) itemMap.get(itemId);
+ cartItem.incrementQuantity();
+ }
+
+ public void setQuantityByItemId(String itemId, int quantity) {
+ CartItem cartItem = (CartItem) itemMap.get(itemId);
+ cartItem.setQuantity(quantity);
+ }
+
+ public BigDecimal getSubTotal() {
+ BigDecimal subTotal = new BigDecimal("0");
+ Iterator items = getAllCartItems();
+ while (items.hasNext()) {
+ CartItem cartItem = (CartItem) items.next();
+ Item item = cartItem.getItem();
+ BigDecimal listPrice = item.getListPrice();
+ BigDecimal quantity = new BigDecimal(String.valueOf(cartItem.getQuantity()));
+ subTotal = subTotal.add(listPrice.multiply(quantity));
+ }
+ return subTotal;
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/CartItem.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/CartItem.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/CartItem.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/CartItem.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,57 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+
+public class CartItem implements Serializable {
+
+ private Item item;
+ private int quantity;
+ private boolean inStock;
+ private BigDecimal total;
+
+ public boolean isInStock() {
+ return inStock;
+ }
+
+ public void setInStock(boolean inStock) {
+ this.inStock = inStock;
+ }
+
+ public BigDecimal getTotal() {
+ return total;
+ }
+
+ public Item getItem() {
+ return item;
+ }
+
+ public void setItem(Item item) {
+ this.item = item;
+ calculateTotal();
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ calculateTotal();
+ }
+
+ public void incrementQuantity() {
+ quantity++;
+ calculateTotal();
+ }
+
+ private void calculateTotal() {
+ if (item != null && item.getListPrice() != null) {
+ total = item.getListPrice().multiply(new BigDecimal(quantity));
+ } else {
+ total = null;
+ }
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Category.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Category.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Category.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Category.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,40 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+
+
+public class Category implements Serializable {
+
+ private String categoryId;
+ private String name;
+ private String description;
+
+ public String getCategoryId() {
+ return categoryId;
+ }
+
+ public void setCategoryId(String categoryId) {
+ this.categoryId = categoryId.trim();
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String toString() {
+ return getCategoryId();
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Item.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Item.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Item.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Item.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,131 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+
+public class Item implements Serializable {
+
+ private String itemId;
+ private String productId;
+ private BigDecimal listPrice;
+ private BigDecimal unitCost;
+ private int supplierId;
+ private String status;
+ private String attribute1;
+ private String attribute2;
+ private String attribute3;
+ private String attribute4;
+ private String attribute5;
+ private Product product;
+ private int quantity;
+
+ public String getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(String itemId) {
+ this.itemId = itemId.trim();
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+ public String getProductId() {
+ return productId;
+ }
+
+ public void setProductId(String productId) {
+ this.productId = productId;
+ }
+
+ public int getSupplierId() {
+ return supplierId;
+ }
+
+ public void setSupplierId(int supplierId) {
+ this.supplierId = supplierId;
+ }
+
+ public BigDecimal getListPrice() {
+ return listPrice;
+ }
+
+ public void setListPrice(BigDecimal listPrice) {
+ this.listPrice = listPrice;
+ }
+
+ public BigDecimal getUnitCost() {
+ return unitCost;
+ }
+
+ public void setUnitCost(BigDecimal unitCost) {
+ this.unitCost = unitCost;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getAttribute1() {
+ return attribute1;
+ }
+
+ public void setAttribute1(String attribute1) {
+ this.attribute1 = attribute1;
+ }
+
+ public String getAttribute2() {
+ return attribute2;
+ }
+
+ public void setAttribute2(String attribute2) {
+ this.attribute2 = attribute2;
+ }
+
+ public String getAttribute3() {
+ return attribute3;
+ }
+
+ public void setAttribute3(String attribute3) {
+ this.attribute3 = attribute3;
+ }
+
+ public String getAttribute4() {
+ return attribute4;
+ }
+
+ public void setAttribute4(String attribute4) {
+ this.attribute4 = attribute4;
+ }
+
+ public String getAttribute5() {
+ return attribute5;
+ }
+
+ public void setAttribute5(String attribute5) {
+ this.attribute5 = attribute5;
+ }
+
+ public String toString() {
+ return "(" + getItemId() + "-" + getProductId() + ")";
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/LineItem.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/LineItem.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/LineItem.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/LineItem.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,91 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+
+public class LineItem implements Serializable {
+
+ private int orderId;
+ private int lineNumber;
+ private int quantity;
+ private String itemId;
+ private BigDecimal unitPrice;
+ private Item item;
+ private BigDecimal total;
+
+ public LineItem() {
+ }
+
+ public LineItem(int lineNumber, CartItem cartItem) {
+ this.lineNumber = lineNumber;
+ this.quantity = cartItem.getQuantity();
+ this.itemId = cartItem.getItem().getItemId();
+ this.unitPrice = cartItem.getItem().getListPrice();
+ this.item = cartItem.getItem();
+ }
+
+ public int getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(int orderId) {
+ this.orderId = orderId;
+ }
+
+ public int getLineNumber() {
+ return lineNumber;
+ }
+
+ public void setLineNumber(int lineNumber) {
+ this.lineNumber = lineNumber;
+ }
+
+ public String getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(String itemId) {
+ this.itemId = itemId;
+ }
+
+ public BigDecimal getUnitPrice() {
+ return unitPrice;
+ }
+
+ public void setUnitPrice(BigDecimal unitprice) {
+ this.unitPrice = unitprice;
+ }
+
+ public BigDecimal getTotal() {
+ return total;
+ }
+
+ public Item getItem() {
+ return item;
+ }
+
+ public void setItem(Item item) {
+ this.item = item;
+ calculateTotal();
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ calculateTotal();
+ }
+
+ private void calculateTotal() {
+ if (item != null && item.getListPrice() != null) {
+ total = item.getListPrice().multiply(new BigDecimal(quantity));
+ } else {
+ total = null;
+ }
+ }
+
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Order.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Order.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Order.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Order.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,308 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
+
+
+public class Order implements Serializable {
+
+ private int orderId;
+ private String username;
+ private Date orderDate;
+ private String shipAddress1;
+ private String shipAddress2;
+ private String shipCity;
+ private String shipState;
+ private String shipZip;
+ private String shipCountry;
+ private String billAddress1;
+ private String billAddress2;
+ private String billCity;
+ private String billState;
+ private String billZip;
+ private String billCountry;
+ private String courier;
+ private BigDecimal totalPrice;
+ private String billToFirstName;
+ private String billToLastName;
+ private String shipToFirstName;
+ private String shipToLastName;
+ private String creditCard;
+ private String expiryDate;
+ private String cardType;
+ private String locale;
+ private String status;
+ private List lineItems = new ArrayList();
+
+ public int getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(int orderId) {
+ this.orderId = orderId;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public Date getOrderDate() {
+ return orderDate;
+ }
+
+ public void setOrderDate(Date orderDate) {
+ this.orderDate = orderDate;
+ }
+
+ public String getShipAddress1() {
+ return shipAddress1;
+ }
+
+ public void setShipAddress1(String shipAddress1) {
+ this.shipAddress1 = shipAddress1;
+ }
+
+ public String getShipAddress2() {
+ return shipAddress2;
+ }
+
+ public void setShipAddress2(String shipAddress2) {
+ this.shipAddress2 = shipAddress2;
+ }
+
+ public String getShipCity() {
+ return shipCity;
+ }
+
+ public void setShipCity(String shipCity) {
+ this.shipCity = shipCity;
+ }
+
+ public String getShipState() {
+ return shipState;
+ }
+
+ public void setShipState(String shipState) {
+ this.shipState = shipState;
+ }
+
+ public String getShipZip() {
+ return shipZip;
+ }
+
+ public void setShipZip(String shipZip) {
+ this.shipZip = shipZip;
+ }
+
+ public String getShipCountry() {
+ return shipCountry;
+ }
+
+ public void setShipCountry(String shipCountry) {
+ this.shipCountry = shipCountry;
+ }
+
+ public String getBillAddress1() {
+ return billAddress1;
+ }
+
+ public void setBillAddress1(String billAddress1) {
+ this.billAddress1 = billAddress1;
+ }
+
+ public String getBillAddress2() {
+ return billAddress2;
+ }
+
+ public void setBillAddress2(String billAddress2) {
+ this.billAddress2 = billAddress2;
+ }
+
+ public String getBillCity() {
+ return billCity;
+ }
+
+ public void setBillCity(String billCity) {
+ this.billCity = billCity;
+ }
+
+ public String getBillState() {
+ return billState;
+ }
+
+ public void setBillState(String billState) {
+ this.billState = billState;
+ }
+
+ public String getBillZip() {
+ return billZip;
+ }
+
+ public void setBillZip(String billZip) {
+ this.billZip = billZip;
+ }
+
+ public String getBillCountry() {
+ return billCountry;
+ }
+
+ public void setBillCountry(String billCountry) {
+ this.billCountry = billCountry;
+ }
+
+ public String getCourier() {
+ return courier;
+ }
+
+ public void setCourier(String courier) {
+ this.courier = courier;
+ }
+
+ public BigDecimal getTotalPrice() {
+ return totalPrice;
+ }
+
+ public void setTotalPrice(BigDecimal totalPrice) {
+ this.totalPrice = totalPrice;
+ }
+
+ public String getBillToFirstName() {
+ return billToFirstName;
+ }
+
+ public void setBillToFirstName(String billToFirstName) {
+ this.billToFirstName = billToFirstName;
+ }
+
+ public String getBillToLastName() {
+ return billToLastName;
+ }
+
+ public void setBillToLastName(String billToLastName) {
+ this.billToLastName = billToLastName;
+ }
+
+ public String getShipToFirstName() {
+ return shipToFirstName;
+ }
+
+ public void setShipToFirstName(String shipFoFirstName) {
+ this.shipToFirstName = shipFoFirstName;
+ }
+
+ public String getShipToLastName() {
+ return shipToLastName;
+ }
+
+ public void setShipToLastName(String shipToLastName) {
+ this.shipToLastName = shipToLastName;
+ }
+
+ public String getCreditCard() {
+ return creditCard;
+ }
+
+ public void setCreditCard(String creditCard) {
+ this.creditCard = creditCard;
+ }
+
+ public String getExpiryDate() {
+ return expiryDate;
+ }
+
+ public void setExpiryDate(String expiryDate) {
+ this.expiryDate = expiryDate;
+ }
+
+ public String getCardType() {
+ return cardType;
+ }
+
+ public void setCardType(String cardType) {
+ this.cardType = cardType;
+ }
+
+ public String getLocale() {
+ return locale;
+ }
+
+ public void setLocale(String locale) {
+ this.locale = locale;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public void setLineItems(List lineItems) {
+ this.lineItems = lineItems;
+ }
+
+ public List getLineItems() {
+ return lineItems;
+ }
+
+ public void initOrder(Account account, Cart cart) {
+
+ username = account.getUsername();
+ orderDate = new Date();
+
+ shipToFirstName = account.getFirstName();
+ shipToLastName = account.getLastName();
+ shipAddress1 = account.getAddress1();
+ shipAddress2 = account.getAddress2();
+ shipCity = account.getCity();
+ shipState = account.getState();
+ shipZip = account.getZip();
+ shipCountry = account.getCountry();
+
+ billToFirstName = account.getFirstName();
+ billToLastName = account.getLastName();
+ billAddress1 = account.getAddress1();
+ billAddress2 = account.getAddress2();
+ billCity = account.getCity();
+ billState = account.getState();
+ billZip = account.getZip();
+ billCountry = account.getCountry();
+
+ totalPrice = cart.getSubTotal();
+
+ creditCard = "999 9999 9999 9999";
+ expiryDate = "12/03";
+ cardType = "Visa";
+ courier = "UPS";
+ locale = "CA";
+ status = "P";
+
+
+ Iterator i = cart.getAllCartItems();
+ while (i.hasNext()) {
+ CartItem cartItem = (CartItem) i.next();
+ addLineItem(cartItem);
+ }
+
+ }
+
+ public void addLineItem(CartItem cartItem) {
+ LineItem lineItem = new LineItem(lineItems.size() + 1, cartItem);
+ addLineItem(lineItem);
+ }
+
+ public void addLineItem(LineItem lineItem) {
+ lineItems.add(lineItem);
+ }
+
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Product.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Product.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Product.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Product.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,49 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+
+
+public class Product implements Serializable {
+
+ private String productId;
+ private String categoryId;
+ private String name;
+ private String description;
+
+ public String getProductId() {
+ return productId;
+ }
+
+ public void setProductId(String productId) {
+ this.productId = productId.trim();
+ }
+
+ public String getCategoryId() {
+ return categoryId;
+ }
+
+ public void setCategoryId(String categoryId) {
+ this.categoryId = categoryId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String toString() {
+ return getName();
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Sequence.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Sequence.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Sequence.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/domain/Sequence.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,34 @@
+package com.ibatis.jpetstore.domain;
+
+import java.io.Serializable;
+
+public class Sequence implements Serializable {
+
+ private String name;
+ private int nextId;
+
+ public Sequence() {
+ }
+
+ public Sequence(String name, int nextId) {
+ this.name = name;
+ this.nextId = nextId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getNextId() {
+ return nextId;
+ }
+
+ public void setNextId(int nextId) {
+ this.nextId = nextId;
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/DaoConfig.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/DaoConfig.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/DaoConfig.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/DaoConfig.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,58 @@
+package com.ibatis.jpetstore.persistence;
+
+import com.ibatis.common.jdbc.ScriptRunner;
+import com.ibatis.common.resources.Resources;
+import com.ibatis.dao.client.DaoManager;
+import com.ibatis.dao.client.DaoManagerBuilder;
+
+import java.io.Reader;
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.util.Properties;
+
+public class DaoConfig {
+
+ private static final String resource = "com/ibatis/jpetstore/persistence/dao.xml";
+ private static final DaoManager daoManager;
+
+ static {
+ try {
+ daoManager = newDaoManager(null);
+ Properties props = Resources.getResourceAsProperties("properties/database.properties");
+ String url = props.getProperty("url");
+ String driver = props.getProperty("driver");
+ String username = props.getProperty("username");
+ String password = props.getProperty("password");
+ if (url.equals("jdbc:hsqldb:mem:jpetstore")) {
+ Class.forName(driver).newInstance();
+ Connection conn = DriverManager.getConnection(url, username, password);
+ try {
+ ScriptRunner runner = new ScriptRunner(conn, false, false);
+ runner.setErrorLogWriter(null);
+ runner.setLogWriter(null);
+ runner.runScript(Resources.getResourceAsReader("ddl/hsql/jpetstore-hsqldb-schema.sql"));
+ runner.runScript(Resources.getResourceAsReader("ddl/hsql/jpetstore-hsqldb-dataload.sql"));
+ } finally {
+ conn.close();
+ }
+ }
+ } catch (Exception e) {
+ throw new RuntimeException("Description. Cause: " + e, e);
+ }
+
+ }
+
+ public static DaoManager getDaoManager() {
+ return daoManager;
+ }
+
+ public static DaoManager newDaoManager(Properties props) {
+ try {
+ Reader reader = Resources.getResourceAsReader(resource);
+ return DaoManagerBuilder.buildDaoManager(reader, props);
+ } catch (Exception e) {
+ throw new RuntimeException("Could not initialize DaoConfig. Cause: " + e, e);
+ }
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/dao.xml
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/dao.xml?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/dao.xml (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/dao.xml Mon Dec 5 22:39:31 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE daoConfig
+ PUBLIC "-//ibatis.apache.org//DTD DAO Configuration 2.0//EN"
+ "http://ibatis.apache.org/dtd/dao-2.dtd">
+
+<daoConfig>
+
+ <context>
+
+ <transactionManager type="SQLMAP">
+ <property name="SqlMapConfigResource"
+ value="com/ibatis/jpetstore/persistence/sqlmapdao/sql/sql-map-config.xml"/>
+ </transactionManager>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.ItemDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.ItemSqlMapDao"/>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.SequenceDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.SequenceSqlMapDao"/>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.AccountDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.AccountSqlMapDao"/>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.CategoryDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.CategorySqlMapDao"/>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.ProductDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.ProductSqlMapDao"/>
+
+ <dao interface="com.ibatis.jpetstore.persistence.iface.OrderDao"
+ implementation="com.ibatis.jpetstore.persistence.sqlmapdao.OrderSqlMapDao"/>
+
+ </context>
+
+</daoConfig>
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/AccountDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/AccountDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/AccountDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/AccountDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,15 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+import com.ibatis.jpetstore.domain.Account;
+
+public interface AccountDao {
+
+ Account getAccount(String username);
+
+ Account getAccount(String username, String password);
+
+ void insertAccount(Account account);
+
+ void updateAccount(Account account);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/CategoryDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/CategoryDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/CategoryDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/CategoryDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,13 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+import com.ibatis.jpetstore.domain.Category;
+
+import java.util.List;
+
+public interface CategoryDao {
+
+ List getCategoryList();
+
+ Category getCategory(String categoryId);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ItemDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ItemDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ItemDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ItemDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,17 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+import com.ibatis.common.util.PaginatedList;
+import com.ibatis.jpetstore.domain.Item;
+import com.ibatis.jpetstore.domain.Order;
+
+public interface ItemDao {
+
+ void updateAllQuantitiesFromOrder(Order order);
+
+ boolean isItemInStock(String itemId);
+
+ PaginatedList getItemListByProduct(String productId);
+
+ Item getItem(String itemId);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/OrderDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/OrderDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/OrderDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/OrderDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,14 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+import com.ibatis.common.util.PaginatedList;
+import com.ibatis.jpetstore.domain.Order;
+
+public interface OrderDao {
+
+ PaginatedList getOrdersByUsername(String username);
+
+ Order getOrder(int orderId);
+
+ void insertOrder(Order order);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ProductDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ProductDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ProductDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/ProductDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,14 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+import com.ibatis.common.util.PaginatedList;
+import com.ibatis.jpetstore.domain.Product;
+
+public interface ProductDao {
+
+ PaginatedList getProductListByCategory(String categoryId);
+
+ Product getProduct(String productId);
+
+ PaginatedList searchProductList(String keywords);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/SequenceDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/SequenceDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/SequenceDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/iface/SequenceDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,7 @@
+package com.ibatis.jpetstore.persistence.iface;
+
+public interface SequenceDao {
+
+ int getNextId(String name);
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/AccountSqlMapDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/AccountSqlMapDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/AccountSqlMapDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/AccountSqlMapDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,40 @@
+package com.ibatis.jpetstore.persistence.sqlmapdao;
+
+import com.ibatis.dao.client.DaoManager;
+import com.ibatis.jpetstore.domain.Account;
+import com.ibatis.jpetstore.persistence.iface.AccountDao;
+
+public class AccountSqlMapDao extends BaseSqlMapDao implements AccountDao {
+
+ public AccountSqlMapDao(DaoManager daoManager) {
+ super(daoManager);
+ }
+
+ public Account getAccount(String username) {
+ return (Account) queryForObject("getAccountByUsername", username);
+ }
+
+ public Account getAccount(String username, String password) {
+ Account account = new Account();
+ account.setUsername(username);
+ account.setPassword(password);
+ return (Account) queryForObject("getAccountByUsernameAndPassword", account);
+ }
+
+ public void insertAccount(Account account) {
+ update("insertAccount", account);
+ update("insertProfile", account);
+ update("insertSignon", account);
+ }
+
+ public void updateAccount(Account account) {
+ update("updateAccount", account);
+ update("updateProfile", account);
+
+ if (account.getPassword() != null && account.getPassword().length() > 0) {
+ update("updateSignon", account);
+ }
+ }
+
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/BaseSqlMapDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/BaseSqlMapDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/BaseSqlMapDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/BaseSqlMapDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,14 @@
+package com.ibatis.jpetstore.persistence.sqlmapdao;
+
+import com.ibatis.dao.client.DaoManager;
+import com.ibatis.dao.client.template.SqlMapDaoTemplate;
+
+public class BaseSqlMapDao extends SqlMapDaoTemplate {
+
+ protected static final int PAGE_SIZE = 4;
+
+ public BaseSqlMapDao(DaoManager daoManager) {
+ super(daoManager);
+ }
+
+}
Added: ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/CategorySqlMapDao.java
URL: http://svn.apache.org/viewcvs/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/CategorySqlMapDao.java?rev=354337&view=auto
==============================================================================
--- ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/CategorySqlMapDao.java (added)
+++ ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/persistence/sqlmapdao/CategorySqlMapDao.java Mon Dec 5 22:39:31 2005
@@ -0,0 +1,23 @@
+package com.ibatis.jpetstore.persistence.sqlmapdao;
+
+import com.ibatis.dao.client.DaoManager;
+import com.ibatis.jpetstore.domain.Category;
+import com.ibatis.jpetstore.persistence.iface.CategoryDao;
+
+import java.util.List;
+
+public class CategorySqlMapDao extends BaseSqlMapDao implements CategoryDao {
+
+ public CategorySqlMapDao(DaoManager daoManager) {
+ super(daoManager);
+ }
+
+ public List getCategoryList() {
+ return queryForList("getCategoryList", null);
+ }
+
+ public Category getCategory(String categoryId) {
+ return (Category) queryForObject("getCategory", categoryId);
+ }
+
+}