[seam-commits] Seam SVN: r11083 - tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Jun 5 17:03:13 EDT 2009
Author: norman.richards at jboss.com
Date: 2009-06-05 17:03:13 -0400 (Fri, 05 Jun 2009)
New Revision: 11083
Removed:
tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/ContextHome.java
tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/TaskHome.java
Log:
changes from 11076
Deleted: tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/ContextHome.java
===================================================================
--- tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/ContextHome.java 2009-06-05 18:55:59 UTC (rev 11082)
+++ tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/ContextHome.java 2009-06-05 21:03:13 UTC (rev 11083)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.seam.example.tasks;
-
-import org.jboss.seam.annotations.AutoCreate;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.example.tasks.entity.Context;
-import org.jboss.seam.framework.EntityHome;
-
-/**
- *
- * @author Jozef Hartinger
- *
- */
- at Name("contextHome")
- at AutoCreate
-public class ContextHome extends EntityHome<Context>
-{
-
- public Context findByUsernameAndContext(String username, String context)
- {
- setInstance((Context) getEntityManager().createNamedQuery("contextByNameAndUser").setParameter("username", username).setParameter("context", context).getSingleResult());
- return getInstance();
- }
-
-}
Deleted: tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/TaskHome.java
===================================================================
--- tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/TaskHome.java 2009-06-05 18:55:59 UTC (rev 11082)
+++ tags/JBoss_Seam_2_1_2/examples/tasks/src/main/org/jboss/seam/example/tasks/TaskHome.java 2009-06-05 21:03:13 UTC (rev 11083)
@@ -1,43 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.seam.example.tasks;
-
-import org.jboss.seam.annotations.AutoCreate;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.example.tasks.entity.Task;
-import org.jboss.seam.framework.EntityHome;
-
-/**
- *
- * @author Jozef Hartinger
- *
- */
- at Name("taskHome")
- at AutoCreate
-public class TaskHome extends EntityHome<Task>
-{
- public Task findTask(Long context, String task) {
- setInstance((Task) getEntityManager().createNamedQuery("taskByNameAndContext").setParameter("task", task).setParameter("context", context).getSingleResult());
- return getInstance();
- }
-
-}
More information about the seam-commits
mailing list