[seam-commits] Seam SVN: r15233 - in branches/community/Seam_2_3/examples/tasks: tasks-tests/src/test/java/org/jboss/seam/example/tasks/test and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Oct 9 06:14:57 EDT 2012


Author: maschmid
Date: 2012-10-09 06:14:56 -0400 (Tue, 09 Oct 2012)
New Revision: 15233

Modified:
   branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java
   branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java
   branches/community/Seam_2_3/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java
   branches/community/Seam_2_3/examples/tasks/tasks-web/pom.xml
Log:
tasks example cleanup


Modified: branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java
===================================================================
--- branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java	2012-10-09 10:08:04 UTC (rev 15232)
+++ branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java	2012-10-09 10:14:56 UTC (rev 15233)
@@ -46,7 +46,7 @@
 @Entity
 @XmlRootElement
 @Table(uniqueConstraints = @UniqueConstraint(columnNames = { "NAME", "OWNER_USERNAME" }))
- at NamedQuery(name = "categoryByNameAndUser", query = "select category from Category category where category.owner.username like :username and category.name like :category")
+ at NamedQuery(name = "categoryByNameAndUser", query = "select c from Category c where c.owner.username like :username and c.name like :category")
 public class Category
 {
    private Long id;

Modified: branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java
===================================================================
--- branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java	2012-10-09 10:08:04 UTC (rev 15232)
+++ branches/community/Seam_2_3/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java	2012-10-09 10:14:56 UTC (rev 15233)
@@ -37,7 +37,7 @@
  */
 @Entity
 @XmlRootElement
- at NamedQuery(name="taskByNameAndCategory", query="select task from Task task where task.name like :task and task.category.id = :category")
+ at NamedQuery(name="taskByNameAndCategory", query="select t from Task t where t.name like :task and t.category.id = :category")
 public class Task
 {
    private Long id;

Modified: branches/community/Seam_2_3/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java
===================================================================
--- branches/community/Seam_2_3/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java	2012-10-09 10:08:04 UTC (rev 15232)
+++ branches/community/Seam_2_3/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java	2012-10-09 10:14:56 UTC (rev 15233)
@@ -6,7 +6,6 @@
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 
 import java.io.File;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
 
 public class Deployments {
    public static EnterpriseArchive tasksDeployment() {

Modified: branches/community/Seam_2_3/examples/tasks/tasks-web/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples/tasks/tasks-web/pom.xml	2012-10-09 10:08:04 UTC (rev 15232)
+++ branches/community/Seam_2_3/examples/tasks/tasks-web/pom.xml	2012-10-09 10:14:56 UTC (rev 15233)
@@ -55,6 +55,16 @@
                 </exclusion>
             </exclusions>
         </dependency>
+        <dependency>
+            <groupId>org.jboss.spec.javax.faces</groupId>
+            <artifactId>jboss-jsf-api_2.1_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.spec.javax.servlet</groupId>
+            <artifactId>jboss-servlet-api_3.0_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
   
     <build>



More information about the seam-commits mailing list