Exploitation d'une vue dans JDeveloper
Bonjour,
1) Je viens de créer une vue :
Code:
1 2 3 4
| CREATE OR REPLACE FORCE VIEW NBREMPDEPT (NBR, CODE_DEPT) AS
select count(*) nbr,nom_dept
from employees
group by code_dept; |
2) Sous JDeveloper, je viens de créer un projet " Fusion Web Application (ADF) "
et puis j'ai créé un model business tiers -> EJB -> entities from tables
et j'ai sélectionné la vue NBREMPDEPT
le message suivant est affiché :
Citation:
Generating classes for Entity Departement...
Generating classes for Entity Employees...
Generating classes for Entity Job...
Generating classes for Entity JobHist...
Generating classes for Entity Nbrempdept...
WARNING: Entity 'Nbrempdept' has no primary key fields, since no Primary Key
or Unique Key constraints were found on its base table, NBREMPDEPT
Finished generating Entities
3) Après création d'une page JSF associée à cette vue et au moment de l'exécution (RUN)
le message suivant est affiché :
Citation:
#### Cannot run application Application2 due to error deploying to DefaultServer.
[Application Application2 stopped and undeployed from Server Instance DefaultServer]