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" }))
-@NamedQuery(name = "categoryByNameAndUser", query = "select category from
Category category where category.owner.username like :username and category.name like
:category")
+@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
-@NamedQuery(name="taskByNameAndCategory", query="select task from Task
task where task.name like :task and task.category.id = :category")
+@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>
Show replies by date