🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #141867

Re: Jak skorzystać z widoków bazy danych w JSF z użyciamiem EntityManager?

#141867
From: Brzezi
Date: Wed, 22 Oct 2008 11:21
24 lines
1858 bytes
śro, 22 paź 2008 o 14:47 GMT, Wito napisał(a):

> a jak powinna wyglądać encja takiego widoku?
> bo mi ciągle wywala, że nie ma takiego schematu

Normalnie :) zamiast nazwy tabeli podajesz nazwe widoku

dla przykladu:

jezeli jest tabela TABELA, na ktorej masz oparta encje, to mozna z niej
zrobic najprostrzy widok:

create view TABELAVIEW as select * from TABELA;

i potem w mapowaniu encji podmieniasz tylko TABELA na TABELAVIEW i powinno
dzialac


Pozdrawiam
	Brzezi
-- 
[    E-mail: brzezi@enter.net.pl ][   brzezi:~# uptime                        ]
[       Ekg: #3781111            ][    14:49:59 up 8 days, 16:37,  3 users,   ]
[ LinuxUser: #249916             ][    load average: 0.17, 0.09, 0.04         ]
Technical Details
Message-ID: <slrn.pl.gfu8h4.gsc.usunto.brzezi@localhost.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!newsfeed.atman.pl!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!newsfeed.atman.pl!not-for-mail
From: Brzezi <usunto.brzezi@enter.net.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: Jak skorzystać z widoków bazy
 danych w JSF z użyciamiem EntityManager?
Date: Wed, 22 Oct 2008 11:21:51 +0000 (UTC)
Organization: Hard Core Slrn-pl User
Lines: 24
Message-ID: <slrn.pl.gfu8h4.gsc.usunto.brzezi@localhost.localdomain>
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>
NNTP-Posting-Host: chello089077080110.chello.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1224674511 4127 89.77.80.110 (22 Oct 2008 11:21:51 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 22 Oct 2008 11:21:51 +0000 (UTC)
X-Licznik: 9244
User-Agent: slrn/0.9.7.4 (pl-1.4.3) (Linux/2.6.24-19-generic (i686))
X-NNTP-Posting-Host: localhost.localdomain
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit