[jboss-cvs] JBossAS SVN: r103209 - in projects/snowdrop/examples/trunk/sportsclub: sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/repository and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 29 16:18:06 EDT 2010


Author: marius.bogoevici
Date: 2010-03-29 16:18:03 -0400 (Mon, 29 Mar 2010)
New Revision: 103209

Added:
   projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Introduction.xml
   projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/UseCases.xml
Removed:
   projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml
Modified:
   projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/guide.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/repository/EquipmentRepository.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateAccountRepository.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateEquipmentRepository.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/initializer/DatabaseInitializer.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/jpa/initializer/DatabaseInitializer.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AbstractExtendedDataModelHelper.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountFilter.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountBase.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountCreate.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountEdit.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-test-infrastructure/src/main/java/org/jboss/snowdrop/samples/sportsclub/test/TestDatasourceFactoryBean.java
Log:
Corrections and doc updates

Deleted: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
-"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "guide.ent">
-%BOOK_ENTITIES;
-]>
-<chapter id="chap-guide-Test_Chapter">
-  <title>Introduction</title>
-
-  <para>This chapter describes the purpose of the example, as well as the
-  general structure of the documentation.</para>
-
-  <section>
-    <title>Prerequisites</title>
-
-    <para>Running the example requires the following setup:</para>
-
-    <itemizedlist>
-      <listitem>
-        <para>Java 6 JDK</para>
-      </listitem>
-
-      <listitem>
-        <para>JBoss AS 5.1.0 GA or JBoss EAP 5 or higher</para>
-      </listitem>
-
-      <listitem>
-        <para>Maven 2.0.8 or higher</para>
-      </listitem>
-    </itemizedlist>
-  </section>
-
-  <section>
-    <title>How to run the example</title>
-
-    <para>Running the appliction consists of the following steps:<itemizedlist>
-        <listitem>
-          <para>Building the application</para>
-        </listitem>
-
-        <listitem>
-          <para>Initializing the database</para>
-        </listitem>
-
-        <listitem>
-          <para>Preparing JBoss </para>
-        </listitem>
-
-        <listitem>
-          <para>Deploying the application</para>
-        </listitem>
-      </itemizedlist></para>
-
-    <simplesect>
-      <title>Building the application</title>
-
-      <para>The Sportsclub example uses maven, so it can be built by simply
-      running:</para>
-
-      <informalexample>
-        <para><programlisting>mvn clean package</programlisting>This will
-        produce two EAR files, both named sportsclub.ear, located under
-        sportsclub-ear/target and sportsclub-jpa-ear/target. They have the
-        same functionality, but the underlying implementation of the
-        persistence layer is different (one is using Hibernate, and another
-        one uses JPA).</para>
-      </informalexample>
-    </simplesect>
-
-    <simplesect>
-      <title>Initializing the database</title>
-
-      <para>The database should be initialized by </para>
-    </simplesect>
-  </section>
-</chapter>

Copied: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Introduction.xml (from rev 103004, projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Introduction.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Introduction.xml	2010-03-29 20:18:03 UTC (rev 103209)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "guide.ent">
+%BOOK_ENTITIES;
+]>
+<chapter id="chap-guide-introduction">
+  <title>Introduction</title>
+
+  <para>This chapter describes the purpose of the example, as well as the
+  general structure of the documentation.</para>
+
+  <section>
+    <title>Prerequisites</title>
+
+    <para>Running the example requires the following setup:</para>
+
+    <itemizedlist>
+      <listitem>
+        <para>Java 6 JDK</para>
+      </listitem>
+
+      <listitem>
+        <para>JBoss AS 5.1.0 GA or JBoss EAP 5 or higher</para>
+      </listitem>
+
+      <listitem>
+        <para>Maven 2.0.8 or higher</para>
+      </listitem>
+    </itemizedlist>
+  </section>
+
+  <section>
+    <title>How to run the example</title>
+
+    <para>Running the appliction consists of the following steps:<itemizedlist>
+        <listitem>
+          <para>Building the application</para>
+        </listitem>
+
+        <listitem>
+          <para>Initializing the database</para>
+        </listitem>
+
+        <listitem>
+          <para>Preparing JBoss </para>
+        </listitem>
+
+        <listitem>
+          <para>Deploying the application</para>
+        </listitem>
+      </itemizedlist></para>
+
+    <simplesect>
+      <title>Building the application</title>
+
+      <para>The Sportsclub example uses maven, so it can be built by simply
+      running:</para>
+
+      <informalexample>
+        <para><programlisting>mvn clean package</programlisting>This will
+        produce two EAR files, both named sportsclub.ear, located under
+        sportsclub-ear/target and sportsclub-jpa-ear/target. They have the
+        same functionality, but the underlying implementation of the
+        persistence layer is different (one is using Hibernate, and another
+        one uses JPA).</para>
+      </informalexample>
+    </simplesect>
+
+    <simplesect>
+      <title>Initializing the database</title>
+
+      <para>The database should be initialized by </para>
+    </simplesect>
+  </section>
+</chapter>


Property changes on: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Introduction.xml
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/UseCases.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/UseCases.xml	                        (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/UseCases.xml	2010-03-29 20:18:03 UTC (rev 103209)
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!ENTITY % BOOK_ENTITIES SYSTEM "guide.ent">
+%BOOK_ENTITIES;
+]>
+<chapter id="chap-guide-usecases">
+  <title>Description of the example application</title>
+
+  <para>This chapter describes the business use cases covered by the
+  application, and how is the functionality distributed across the
+  modules.</para>
+
+  <section>
+    <title>The Business Domain of the example application</title>
+
+    <para>The goal of the Sportsclub application is to provide a few examples
+    of real-world applications based on the Spring Framework that integrate
+    with Java EE 5 and JBoss. It consists of not one, but three different
+    applications sharing the same domain model, packaged and deployed
+    together. The latter is done for simplicity reasons, but also for
+    demonstrating a few different technologies working side by side. In the
+    following sections, we will discuss the technologies used in the
+    applications.</para>
+
+    <para>The business domain of the application is a Sports Club. The
+    employees of the club need to be able to perform the following
+    scenarios:</para>
+
+    <para><itemizedlist>
+        <listitem>
+          <para>maintaining informations about the subscribers, creating new
+          subcriptions and closing existing accounts</para>
+        </listitem>
+
+        <listitem>
+          <para>creating, modifying and removing equipment reservations for
+          subscribers</para>
+        </listitem>
+
+        <listitem>
+          <para>viewing the current balance of an account, issuing invoices
+          for accounts that do not have a current invoice and updating the
+          account whenever a payment has been received</para>
+        </listitem>
+      </itemizedlist>As the concerns are different, we have three different
+    applications, each covering one piece of functionality.</para>
+  </section>
+
+  <section>
+    <title>The Technologies</title>
+
+    <para>The Reservations application is using the following
+    stack:<itemizedlist>
+        <listitem>
+          <para>UI layer implemented using Richfaces</para>
+        </listitem>
+
+        <listitem>
+          <para>Business layer implemented using EJB</para>
+        </listitem>
+
+        <listitem>
+          <para>Persistence layer using Spring-based DAOs
+          (Hibernate/JPA)</para>
+        </listitem>
+      </itemizedlist>The Subscriptions application is using the following
+    stack:</para>
+
+    <itemizedlist>
+      <listitem>
+        <para>UI layer implemented using Richfaces</para>
+      </listitem>
+
+      <listitem>
+        <para>Business layer implemented using Spring</para>
+      </listitem>
+
+      <listitem>
+        <para>Persistence layer implemented using Spring-based DAOs
+        (Hibernate/JPA)</para>
+      </listitem>
+    </itemizedlist>
+
+    <para>The Invoicing application is using the following stack:<itemizedlist>
+        <listitem>
+          <para>UI layer implemented using Spring MVC and JSP</para>
+        </listitem>
+
+        <listitem>
+          <para>Business layer implemented using EJB</para>
+        </listitem>
+
+        <listitem>
+          <para>Persistence layer implemented using Spring-based DAOs
+          (Hibernate/JPA)</para>
+        </listitem>
+      </itemizedlist></para>
+
+    <para>In all three cases, the persistence layer is implemented using
+    Spring. In fact there are two alternative implementations: one using
+    Hibernate directly and one using JPA (and Hibernate as the provider).
+    Building the application creates two different EAR files, one using the
+    JPA-based DAOs and one using the Hibernate-based DAOs.</para>
+  </section>
+
+  <section>
+    <title>The project modules</title>
+
+    <para>The modules of the project are outlined in the following
+    table:<table>
+        <title>Modules of the Sportsclub project</title>
+
+        <tgroup cols="3">
+          <colspec colname="module-name" />
+
+          <colspec colname="module-description" />
+
+          <colspec align="center" colname="module-type" />
+
+          <thead>
+            <row>
+              <entry align="center">Maven Module</entry>
+
+              <entry align="center">Functionality</entry>
+
+              <entry>Module Type</entry>
+            </row>
+          </thead>
+
+          <tbody>
+            <row>
+              <entry>snowdrop-domain</entry>
+
+              <entry>Domain classes and interfaces for repositories.</entry>
+
+              <entry>jar</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-hibernate-dao</entry>
+
+              <entry>Hibernate implementations for repositories and Spring
+              bean definitions using them.</entry>
+
+              <entry>jar</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-jpa-dao</entry>
+
+              <entry>JPA implementations for repositories and Spring bean
+              definitions using them.</entry>
+
+              <entry>jar</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-invoicing-ejb</entry>
+
+              <entry>Business logic for the Invoicing application</entry>
+
+              <entrytbl cols="1">
+                <tbody>
+                  <row>
+                    <entry>ejb</entry>
+                  </row>
+                </tbody>
+              </entrytbl>
+            </row>
+
+            <row>
+              <entry>sportsclub-reservations-spring</entry>
+
+              <entry>Business logic for the Reservations application</entry>
+
+              <entry>jar</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-subscriptions-ejb</entry>
+
+              <entry>Business logic for the Subscriptions application</entry>
+
+              <entry>ejb</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-invoicing-webmvc</entry>
+
+              <entry>UI layer for the Invoicing application. Includes
+              processing of JMS messages via Spring (for payment
+              notifications)</entry>
+
+              <entry>war</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-reservations-web</entry>
+
+              <entry>UI layer for the Reservations application.</entry>
+
+              <entry>war</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-subscriptions-web</entry>
+
+              <entry>UI layer for the Subscriptions application</entry>
+
+              <entry>war</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-ear</entry>
+
+              <entry>EAR aggregator module using the Hibernate-based
+              implementation</entry>
+
+              <entry>ear</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-jpa-ear</entry>
+
+              <entry>EAR aggregator module using the JPA-based
+              implementation</entry>
+
+              <entry>ear</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-staticwebcontent</entry>
+
+              <entry>Static web content for the application (not deployed
+              separately, but included at build-time in the web
+              layers)</entry>
+
+              <entry>war</entry>
+            </row>
+
+            <row>
+              <entry>sportsclub-test-infrastructure</entry>
+
+              <entry>Infrastructure module for unit testing</entry>
+
+              <entry>jar</entry>
+            </row>
+          </tbody>
+        </tgroup>
+      </table></para>
+  </section>
+</chapter>

Modified: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/guide.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/guide.xml	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/guide.xml	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,13 +1,13 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<!-- This document was created with Syntext Serna Free. -->
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<!-- This document was created with Syntext Serna Free. --><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % BOOK_ENTITIES SYSTEM "guide.ent">
 %BOOK_ENTITIES;
 ]>
 <book>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Book_Info.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Preface.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Chapter.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Introduction.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="UseCases.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Revision_History.xml"/>
   <index/>
 </book>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/repository/EquipmentRepository.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/repository/EquipmentRepository.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/repository/EquipmentRepository.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,13 +1,11 @@
 package org.jboss.snowdrop.samples.sportsclub.domain.repository;
 
+import java.util.Collection;
+
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Equipment;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.EquipmentType;
 import org.jboss.snowdrop.samples.sportsclub.domain.repository.criteria.RangeCriteria;
 
-import java.util.List;
-import java.util.Date;
-import java.util.Collection;
-
 /**
  *
  */

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateAccountRepository.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateAccountRepository.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateAccountRepository.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -68,6 +68,7 @@
       return criteria;
    }
 
+   @SuppressWarnings("unchecked")
    public List<Account> findByCriteria(AccountSearchCriteria accountSearchCriteria)
    {
       Criteria criteria = convert(accountSearchCriteria);

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateEquipmentRepository.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateEquipmentRepository.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/HibernateEquipmentRepository.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -21,6 +21,7 @@
       return EquipmentType.values();
    }
 
+   @SuppressWarnings("unchecked")
    public Collection<Equipment> findByCriteria(RangeCriteria rangeCriteria)
    {
       Criteria criteria = convert(rangeCriteria);

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/initializer/DatabaseInitializer.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/initializer/DatabaseInitializer.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/initializer/DatabaseInitializer.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -130,6 +130,7 @@
       });
    }
 
+   @SuppressWarnings("unchecked")
    private void saveMap(Session session, Map data)
    {
       for (String key : (Set<String>)data.keySet())

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/jpa/initializer/DatabaseInitializer.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/jpa/initializer/DatabaseInitializer.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/jpa/initializer/DatabaseInitializer.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -129,6 +129,7 @@
       });
    }
 
+   @SuppressWarnings("unchecked")
    private void saveMap(EntityManager entityManager, Map data)
    {
       for (String key : (Set<String>)data.keySet())

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AbstractExtendedDataModelHelper.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AbstractExtendedDataModelHelper.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AbstractExtendedDataModelHelper.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,14 +1,10 @@
 package org.jboss.snowdrop.samples.sportsclub.jsf.beans;
 
+import java.util.Map;
+
 import org.ajax4jsf.model.ExtendedDataModel;
-import org.ajax4jsf.model.Range;
-import org.ajax4jsf.model.DataVisitor;
 import org.richfaces.model.selection.Selection;
 
-import javax.faces.context.FacesContext;
-import java.io.IOException;
-import java.util.Map;
-
 /**
  * Abstract helper class for JSF backing beans serving {#link ExtendedDataModel} implementations. 
  *

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountFilter.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountFilter.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountFilter.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,18 +1,18 @@
 package org.jboss.snowdrop.samples.sportsclub.jsf.beans;
 
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+
 import org.ajax4jsf.model.DataVisitor;
 import org.ajax4jsf.model.Range;
 import org.ajax4jsf.model.SequenceRange;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Account;
 import org.jboss.snowdrop.samples.sportsclub.service.AccountService;
-import org.richfaces.model.selection.Selection;
 
-import javax.faces.context.FacesContext;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
 /**
  * @author <a href="mailto:lvlcek at redhat.com">Lukas Vlcek</a>
  */

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountBase.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountBase.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountBase.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -5,9 +5,6 @@
 import javax.faces.model.SelectItem;
 
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Account;
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.Address;
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.Name;
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.Person;
 import org.jboss.snowdrop.samples.sportsclub.ejb.SubscriptionService;
 
 /**

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountCreate.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountCreate.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountCreate.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,15 +1,11 @@
 package org.jboss.snowdrop.samples.sportsclub.jsf.beans;
 
 import javax.annotation.PostConstruct;
-import javax.ejb.EJB;
-import javax.faces.model.SelectItem;
 
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.Account;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Address;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.BillingType;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Name;
 import org.jboss.snowdrop.samples.sportsclub.domain.entity.Person;
-import org.jboss.snowdrop.samples.sportsclub.ejb.SubscriptionService;
 
 /**
  * @author <a href="mailto:mariusb at redhat.com">Marius Bogoevici</a>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountEdit.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountEdit.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-subscriptions-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/AccountEdit.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,13 +1,7 @@
 package org.jboss.snowdrop.samples.sportsclub.jsf.beans;
 
 import javax.annotation.PostConstruct;
-import javax.ejb.EJB;
-import javax.faces.model.SelectItem;
 
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.Account;
-import org.jboss.snowdrop.samples.sportsclub.domain.entity.BillingType;
-import org.jboss.snowdrop.samples.sportsclub.ejb.SubscriptionService;
-
 /**
  * @author Marius Bogoevici
  */

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-test-infrastructure/src/main/java/org/jboss/snowdrop/samples/sportsclub/test/TestDatasourceFactoryBean.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-test-infrastructure/src/main/java/org/jboss/snowdrop/samples/sportsclub/test/TestDatasourceFactoryBean.java	2010-03-29 20:08:42 UTC (rev 103208)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-test-infrastructure/src/main/java/org/jboss/snowdrop/samples/sportsclub/test/TestDatasourceFactoryBean.java	2010-03-29 20:18:03 UTC (rev 103209)
@@ -1,14 +1,15 @@
 package org.jboss.snowdrop.samples.sportsclub.test;
 
-import javax.annotation.PostConstruct;
-import javax.annotation.PreDestroy;
-import javax.sql.DataSource;
 import java.io.BufferedReader;
-import java.io.FileReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.sql.SQLException;
 
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.sql.DataSource;
+
+import org.apache.commons.dbcp.BasicDataSource;
 import org.springframework.beans.factory.FactoryBean;
 import org.springframework.context.ResourceLoaderAware;
 import org.springframework.core.io.Resource;
@@ -20,9 +21,8 @@
 import org.springframework.transaction.support.TransactionCallback;
 import org.springframework.transaction.support.TransactionTemplate;
 
-import org.apache.commons.dbcp.BasicDataSource;
-
 /**
+ * 
  * @author Marius Bogoevici
  */
 public class TestDatasourceFactoryBean implements FactoryBean, ResourceLoaderAware




More information about the jboss-cvs-commits mailing list