Resolution: Not a Problem
Affects Version/s: None
Fix Version/s: None
I have weblogic system libraries having javax.persistence_184.108.40.206_1-0.jar and org.apache.openjpa_220.127.116.11_1-1-0.jar.
EntityManager em = eClepRoleFactory.createEntityManager();
1. Connection c = (Connection)OpenJPAPersistence.cast(em).getConnection();
String s = "SET ROLE "" IDENTIFIED BY "+pass;
Statement stmt = c.createStatement();
Query q = em.createNativeQuery("SET ROLE eclep_hpn_role IDENTIFIED BY role55");
Note: I am able to set the role using the steps in 1, but not with the steps in 2.
Question: What is missing in steps 2, because of which I am not able to set the role. Doesn't createNatvieQuery support this feature. Please help me urgently.