custom « Connection « JPA Q&A





1. Custom connection instance    forum.hibernate.org

2. Executing custom setup SQL on each connection before use    forum.hibernate.org

We want to run some custom SQL on each connection before Hibernate uses the connection. The SQL only needs to be run once for each connection, it doesn't matter if the connection is involved in lots of transactions (ie. used in a connection pool), as long as the SQL got executed before the first transaction was executed. Currently, I've subclassed the ...

3. Using custom connection settings across multiple calls    forum.hibernate.org

Hi, I am using Hibernate and Firebird (via Spring). I basically need a full table lock, and so need to grab the Connection object, cast it to a FirebirdConnection object, and set some Transaction settings on it as their mapping of Serializable Isolation does not include a full table lock (we are using Firebird Connection pool to allow us access to ...

4. Running Custom SQL Script on DB Connection.    forum.hibernate.org

5. custom connection provider and licensing    forum.hibernate.org

There may be an LGPL clause that would answer my question directly but I didn't find anything obvious so I need help in understanding this. I want to create a custom C3P0 connection provider that will allow me to access the underlying C3P0 datasource and execute administrative commands on it, including forcefully closing it. Since hibernate's ConnectionProvider interface itself can't be ...

6. custom connection provider to do oracle VPD access    forum.hibernate.org

We are using hibernate with oracle. To restrict rows access, we have base tables and views defined on top of base tables witha column client_id. The views return data from base tables based on client_id that is fetched from the context. Using one stored procedure you can set the client_id for session and then the view would only return data for ...

7. Need help with Custom Connection Pooling    forum.hibernate.org

Hi All, I'm a newbie to hibernate and have some questions. I've my own ConnectionPool.java. Is it possible to use this class to get connection to database or can i only go with c3p0 or DBCP with the app server? If possible can someone explain how to create the configuration, sessionfactory and session? I'm also getting the following exception when trying ...