|
Our application uses database views for specific tables.
The view is created depending on user privilages, when
user is created (or modified). Only the original table is mapped in the
hibernate, the restricted views, as they are created dinamically
(names also), are not.
We are using Criteria to perform selects on the original table,
however we would like to restrict them to the specific view,
without making changes to the mappings.
The question is:
- How can I use Hibernate Criteria / HQL, on these views
if they are not mapped in the Hibernate ?
If not :
- Is there any possibility to update hibernate mappings
while the application is running ?
|