[seam-commits] Seam SVN: r15282 - in branches/enterprise/WFK-2_1/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
Thu Oct 11 10:50:34 EDT 2012


Author: manaRH
Date: 2012-10-11 10:50:34 -0400 (Thu, 11 Oct 2012)
New Revision: 15282

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

Modified: branches/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java	2012-10-11 14:50:13 UTC (rev 15281)
+++ branches/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Category.java	2012-10-11 14:50:34 UTC (rev 15282)
@@ -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/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java	2012-10-11 14:50:13 UTC (rev 15281)
+++ branches/enterprise/WFK-2_1/examples/tasks/tasks-ejb/src/main/java/org/jboss/seam/example/tasks/entity/Task.java	2012-10-11 14:50:34 UTC (rev 15282)
@@ -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/enterprise/WFK-2_1/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java	2012-10-11 14:50:13 UTC (rev 15281)
+++ branches/enterprise/WFK-2_1/examples/tasks/tasks-tests/src/test/java/org/jboss/seam/example/tasks/test/Deployments.java	2012-10-11 14:50:34 UTC (rev 15282)
@@ -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/enterprise/WFK-2_1/examples/tasks/tasks-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/tasks/tasks-web/pom.xml	2012-10-11 14:50:13 UTC (rev 15281)
+++ branches/enterprise/WFK-2_1/examples/tasks/tasks-web/pom.xml	2012-10-11 14:50:34 UTC (rev 15282)
@@ -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