I have similar problem, but instead of oracle i use mysql .. I've created db view "used_license" and used seam to generate entity for it, but when i start JBoss AS i receive message:
Code:
10:08:14,601 INFO [DatabaseMetadata] table not found: used_license
10:08:14,605 WARN [ServiceController] Problem starting service persistence.units:ear=licence_ev.ear,unitName=licence_ev
javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing table: used_license
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
...
Is it possible to create entity for db view anyway?? I can't find nothing about it in doc or in google and i've been searching for a two weeks.