Article View: pl.comp.lang.java
Article #141870Re: Jak skorzystać z widoków bazy danych w JSF z użyciamiem EntityManager?
From: Wito
Date: Fri, 24 Oct 2008 08:33
Date: Fri, 24 Oct 2008 08:33
26 lines
2800 bytes
2800 bytes
On 23 Paź, 09:41, Brzezi <usunto.brz...@enter.net.pl> wrote:
> czw, 23 paź 2008 o 11:05 GMT, Wito napisał(a):
>
> > mam zrobiony widok v_czytania i encje Vczytania.java
>
> > @Entity
> > @Table(name = "V_CZYTANIA")
> > @NamedQueries({@NamedQuery(name = "VCzytania.poID", query = "SELECT t
> > FROM v_czytania t")})
>
> A czy ty przypadkiem nie piszesz SQLa zamias EJBQLa? "FROM v_czytania" to
> odwoluje sie do tabelki SQL, nie mozesz tak robic w EJBQL, chyba pomyliles
> native queries z named queries...
>
> > viewList.addAll(em.createNamedQuery("VCzytania.poID").getResultList());
>
> em.createQuery("SELECT t FROM Vczytania t").getResultList();
>
> Pozdrawiam
> Brzezi
> --
> [ E-mail: brz...@enter.net.pl ][ Learn from other people's mistakes, ]
> [ Ekg: #3781111 ][ you don't have time to make your own. ]
> [ LinuxUser: #249916 ][ ]
Miałeś rację. Miana v_czytania na VCzytania pomogła
Technical Details
Message-ID:
<33c8cbe5-92a2-4923-a029-0ea4654340c2@v30g2000hsa.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!v30g2000hsa.googlegroups.com!not-for-mailReferences:
<9d5ee091-68c9-4c11-84a0-85a4e677159c@m36g2000hse.googlegroups.com> <slrn.pl.gfu1i9.gsc.usunto.brzezi@localhost.localdomain> <3f784cce-41d8-4924-a772-63f3247e78a0@8g2000hse.googlegroups.com> <slrn.pl.gfu8h4.gsc.usunto.brzezi@localhost.localdomain> <02fa4642-bf55-4032-bd80-be7cff3060da@l77g2000hse.googlegroups.com> <slrn.pl.gg0fvj.gsc.usunto.brzezi@localhost.localdomain>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!v30g2000hsa.googlegroups.com!not-for-mail From: Wito <wolewniczak@gmail.com> Newsgroups: pl.comp.lang.java Subject: Re: Jak skorzystać z widoków bazy danych w JSF z użyciamiem EntityManager? Date: Fri, 24 Oct 2008 01:33:45 -0700 (PDT) Organization: http://groups.google.com Lines: 31 Message-ID: <33c8cbe5-92a2-4923-a029-0ea4654340c2@v30g2000hsa.googlegroups.com> References: <9d5ee091-68c9-4c11-84a0-85a4e677159c@m36g2000hse.googlegroups.com> <slrn.pl.gfu1i9.gsc.usunto.brzezi@localhost.localdomain> <3f784cce-41d8-4924-a772-63f3247e78a0@8g2000hse.googlegroups.com> <slrn.pl.gfu8h4.gsc.usunto.brzezi@localhost.localdomain> <02fa4642-bf55-4032-bd80-be7cff3060da@l77g2000hse.googlegroups.com> <slrn.pl.gg0fvj.gsc.usunto.brzezi@localhost.localdomain> NNTP-Posting-Host: 217.97.198.98 Mime-Version: 1.0 X-Trace: posting.google.com 1224837226 32238 127.0.0.1 (24 Oct 2008 08:33:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 24 Oct 2008 08:33:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v30g2000hsa.googlegroups.com; posting-host=217.97.198.98; posting-account=V5sjawkAAAAQlMmPYs5SKVG1iccFBIqI User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 Serwer_proxy_POSD_ODG_w_Olsztynie:8080 (squid/2.6.STABLE18) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit