Odstraněno zapomenuté rozhraní EJB.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri Feb 26 23:45:43 2010 +0100 (2010-02-26)
changeset 4886bd44cebe8f
parent 47 10cd7f54f9f5
child 49 9b2a597cc862
Odstraněno zapomenuté rozhraní EJB.
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/dao/PodnikDAO.java
java/nekurak.net-lib/src/cz/frantovo/nekurak/ejb/PodnikDAORemote.java
java/nekurak.net-web/web/grafika/jazyk_cs.png
java/nekurak.net-web/web/grafika/jazyk_en.png
     1.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/dao/PodnikDAO.java	Fri Feb 26 18:24:10 2010 +0100
     1.2 +++ b/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/dao/PodnikDAO.java	Fri Feb 26 23:45:43 2010 +0100
     1.3 @@ -1,7 +1,6 @@
     1.4  package cz.frantovo.nekurak.dao;
     1.5  
     1.6  import cz.frantovo.nekurak.dto.Podnik;
     1.7 -import cz.frantovo.nekurak.ejb.PodnikDAORemote;
     1.8  import java.util.Collection;
     1.9  import javax.ejb.LocalBean;
    1.10  import javax.ejb.Stateless;
    1.11 @@ -15,14 +14,14 @@
    1.12   */
    1.13  @Stateless
    1.14  @LocalBean
    1.15 -public class PodnikDAO implements PodnikDAORemote {
    1.16 +public class PodnikDAO {
    1.17  
    1.18      private static final String PU = "nekurak.net-PU";
    1.19      @PersistenceContext(unitName = PU)
    1.20      private EntityManager em;
    1.21  
    1.22      public Collection<Podnik> getPodniky() {
    1.23 -	Query dotaz = em.createQuery("FROM " + t(Podnik.class) + " o ORDER BY nazev");
    1.24 +	Query dotaz = em.createQuery("FROM " + t(Podnik.class) + " o ORDER BY datum DESC");
    1.25  	return dotaz.getResultList();
    1.26      }
    1.27  
     2.1 --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/ejb/PodnikDAORemote.java	Fri Feb 26 18:24:10 2010 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,11 +0,0 @@
     2.4 -package cz.frantovo.nekurak.ejb;
     2.5 -
     2.6 -import cz.frantovo.nekurak.dto.Podnik;
     2.7 -import java.util.Collection;
     2.8 -import javax.ejb.Remote;
     2.9 -
    2.10 -@Remote
    2.11 -public interface PodnikDAORemote {
    2.12 -
    2.13 -    public Collection<Podnik> getPodniky();
    2.14 -}
     3.1 Binary file java/nekurak.net-web/web/grafika/jazyk_cs.png has changed
     4.1 Binary file java/nekurak.net-web/web/grafika/jazyk_en.png has changed