How to Connect to Oracle VPD using Hibernate
Oracle VPD or Virtual Private Database is a Oracle Database feature that provides data access control features for the database. You cannot directly access the VPD data using the persistence managers like Hibernate or JPA. There's an option of using Oracle Toplink, but it is not a free for commercial use. The following "work-around" allows you to use Oracle VPD with Hibernate API.
You need to create an implementation of the ConnectionProvider which will override the default connection provider.
This property will make the Hibernate invoke the MyConnectionProvider whenever a new connection is requested by the application.
Comments
Need some help
Give out some example
Post new comment