Permalink
Browse files

Removed iBatis from all web pages, pom and readme.

  • Loading branch information...
astefan
astefan committed Oct 19, 2011
1 parent b7c10f9 commit d08b7c0aee2297cbe7f261743d023e70ca53abeb
View
@@ -19,7 +19,6 @@
<commons-io.version>1.3.2</commons-io.version>
<urlrewrite.version>3.1.0</urlrewrite.version>
<spring-js.version>2.0.7.RELEASE</spring-js.version>
- <!-- <ibatis.version>2.3.4.726</ibatis.version> -->
<caucho.version>3.2.1</caucho.version>
<axis.version>1.4.0</axis.version>
<wsdl.version>1.6.1</wsdl.version>
@@ -179,15 +178,6 @@
</exclusion>
</exclusions>
</dependency>
-
- <!--
- <dependency>
- <groupId>org.apache.ibatis</groupId>
- <artifactId>com.springsource.com.ibatis</artifactId>
- <version>${ibatis.version}</version>
- <scope>runtime</scope>
- </dependency>
- -->
<dependency>
<groupId>com.caucho</groupId>
View
@@ -4,12 +4,11 @@
@author Juergen Hoeller
@author Andrei Stefan
-Based on Clinton Begin's JPetStore (http://www.ibatis.com).
1. MOTIVATION
-Features a Spring-managed middle tier with iBATIS Database Layer as data access
+Features a Spring-managed middle tier with Spring Data and SQLFire as data access
strategy, in combination with Spring's transaction and DAO abstractions.
Can work with local JDBC transactions or JTA, with the latter on two databases.
Uses the same data model and demo contents as the original JPetStore.
@@ -19,7 +19,7 @@
*
* <p>This object makes use of five DAO objects, decoupling it
* from the details of working with persistence APIs. So
- * although this application uses iBATIS for data access,
+ * although this application uses Spring Data for data access,
* a different persistence tool could be dropped in without
* breaking this class.
*
@@ -37,66 +37,32 @@
<!-- (see dataAccessContext-local.xml for an alternative) -->
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"/>
- <!-- SqlMap setup for iBATIS Database Layer -->
- <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
- <property name="configLocation" value="WEB-INF/sql-map-config.xml"/>
- </bean>
- <!-- ========================= DAO DEFINITIONS: IBATIS IMPLEMENTATIONS ========================= -->
+ <!-- ========================= DAO DEFINITIONS: Spring Data IMPLEMENTATIONS ========================= -->
- <bean id="accountDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapAccountDao">
+ <bean id="accountDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataAccountDao">
<property name="dataSource" ref="dataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
</bean>
- <bean id="categoryDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapCategoryDao">
+ <bean id="categoryDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataCategoryDao">
<property name="dataSource" ref="dataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
</bean>
- <bean id="productDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapProductDao">
+ <bean id="productDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataProductDao">
<property name="dataSource" ref="dataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
</bean>
- <bean id="itemDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapItemDao">
+ <bean id="itemDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataItemDao">
<property name="dataSource" ref="dataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
-
- <!-- Refers to the order database here -->
- <!-- (see dataAccessContext-local.xml for an alternative) -->
- <bean id="orderDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapOrderDao">
- <property name="dataSource" ref="orderDataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
- <property name="sequenceDao" ref="sequenceDao"/>
- </bean>
-
- <!-- OrderDao definition for MS SQL Server -->
- <!-- (to be used instead of the default orderDao) -->
- <!--
- <bean id="orderDao" class="org.springframework.samples.jpetstore.dao.ibatis.MsSqlOrderDao">
- <property name="dataSource" ref="orderDataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
- <property name="sequenceDao" ref="sequenceDao"/>
</bean>
- -->
- <!-- Refers to the order database here -->
- <!-- (see dataAccessContext-local.xml for an alternative) -->
- <bean id="sequenceDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapSequenceDao">
- <property name="dataSource" ref="orderDataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
+ <bean id="orderDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataOrderDao">
+ <property name="dataSource" ref="dataSource"/>
+ <property name="springDataSequenceDao" ref="sequenceDao"/>
</bean>
- <!-- SequenceDao definition for Oracle databases -->
- <!-- (to be used instead of the default sequenceDao) -->
- <!--
- <bean id="sequenceDao" class="org.springframework.samples.jpetstore.dao.ibatis.OracleSequenceDao">
- <property name="dataSource" ref="orderDataSource"/>
- <property name="sqlMapClient" ref="sqlMapClient"/>
+ <bean id="sequenceDao" class="org.springframework.samples.jpetstore.dao.springdata.SpringDataSequenceDao">
+ <property name="dataSource" ref="dataSource"/>
</bean>
- -->
-
</beans>
@@ -13,19 +13,6 @@
<beans>
<!-- ========================= RESOURCE DEFINITIONS ========================= -->
-
- <!-- Local Apache Commons DBCP DataSource that refers to a combined database -->
- <!-- (see dataAccessContext-jta.xml for an alternative) -->
- <!-- The placeholders are resolved from jdbc.properties through -->
- <!-- the PropertyPlaceholderConfigurer in applicationContext.xml -->
- <!--
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
- <property name="driverClassName" value="${jdbc.driverClassName}"/>
- <property name="url" value="${jdbc.url}"/>
- <property name="username" value="${jdbc.username}"/>
- <property name="password" value="${jdbc.password}"/>
- </bean>
- -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${jdbc.sqlfire.driverClassName}"/>
<property name="url" value="${jdbc.sqlfire.url}"/>
@@ -64,38 +51,4 @@
<property name="dataSource" ref="dataSource"/>
</bean>
- <!-- SqlMap setup for iBATIS Database Layer
- <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
- <property name="configLocation" value="WEB-INF/sql-map-config.xml"/>
- <property name="dataSource" ref="dataSource"/>
- </bean>
- -->
-
- <!-- ========================= DAO DEFINITIONS: IBATIS IMPLEMENTATIONS =========================
-
- <bean id="accountDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapAccountDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
-
- <bean id="categoryDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapCategoryDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
-
- <bean id="productDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapProductDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
-
- <bean id="itemDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapItemDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
-
- <bean id="orderDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapOrderDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- <property name="sequenceDao" ref="sequenceDao"/>
- </bean>
-
- <bean id="sequenceDao" class="org.springframework.samples.jpetstore.dao.ibatis.SqlMapSequenceDao">
- <property name="sqlMapClient" ref="sqlMapClient"/>
- </bean>
- -->
</beans>
@@ -8,9 +8,10 @@
</a>
</td>
<td>
- <a href="http://www.ibatis.com">
- <img border="0" align="center" src="../images/poweredby.gif" alt="Powered by iBATIS"/>
- </a>
+ <a href="http://www.querydsl.com">Powered by QueryDSL</a>
+ </td>
+ <td>
+ <a href="http://communities.vmware.com/community/vmtn/appplatform/vfabric_sqlfire">Powered by SQLFire</a>
</td>
</tr>
</table>
@@ -8,9 +8,10 @@
</a>
</td>
<td>
- <a href="http://www.ibatis.com">
- <img border="0" align="center" src="../images/poweredby.gif" alt="Powered by iBATIS"/>
- </a>
+ <a href="http://www.querydsl.com">Powered by QueryDSL</a>
+ </td>
+ <td>
+ <a href="http://communities.vmware.com/community/vmtn/appplatform/vfabric_sqlfire">Powered by SQLFire</a>
</td>
</tr>
</table>
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
- "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
-
-<sqlMapConfig>
-
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Account.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Category.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Product.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Item.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Order.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/LineItem.xml"/>
- <sqlMap resource="org/springframework/samples/jpetstore/dao/ibatis/maps/Sequence.xml"/>
-
-</sqlMapConfig>
@@ -32,8 +32,6 @@
<TD vAlign=top>
<CENTER>
<H1>JPetStore Demo</H1>
- <H3>By <a href="mailto:clinton.begin@ibatis.com">Clinton
- Begin</a></H3>
</CENTER>
The JPetStore Demo is an online pet store. Like most e-stores, you
can browse and search the product catalog, choose items to add to a
@@ -133,26 +131,11 @@ <H2><A name=Issues></A>Known Issues</H2>
<TR>
<TD vAlign=bottom></TD>
</TR>
- <TR>
- <TD vAlign=bottom>
- <TABLE border=0 cellSpacing=0 width="100%">
- <TBODY>
- <TR>
- <TD align=middle><FONT color=black size=+1>Implementation
- by <a href="mailto:clinton.begin@ibatis.com">Clinton Begin</a></FONT></TD>
- </TR>
- </TBODY>
- </TABLE>
- </TD>
- </TR>
</TBODY>
</TABLE>
<P>&nbsp;</P>
-<P align="center"><a href="http://www.ibatis.com"><IMG border=0
- align="center" src="images/poweredby.gif"></a></P>
-
</BODY>
</HTML>
@@ -35,7 +35,6 @@
<TD vAlign=top width=100%>
<p>&nbsp;</p>
<p align="center"><b>Welcome to the Spring JPetStore, by Juergen Hoeller</b></p>
- <p align="center">Based on the iBATIS JPetStore, by Clinton Begin</p>
<p align="center">
<i>
This application demonstrates the use of Spring for the middle tier,
@@ -63,9 +62,10 @@
</a>
</td>
<td>
- <a href="http://www.ibatis.com">
- <img border="0" align="center" src="images/poweredby.gif" alt="Powered by iBATIS"/>
- </a>
+ <a href="http://www.querydsl.com">Powered by QueryDSL</a>
+ </td>
+ <td>
+ <a href="http://communities.vmware.com/community/vmtn/appplatform/vfabric_sqlfire">Powered by SQLFire</a>
</td>
</tr>
</table>

0 comments on commit d08b7c0

Please sign in to comment.