direct « JDBC « JPA Q&A





1. Use direct JDBC connection correctly with hibernate    forum.hibernate.org

I am using hibernate2.1 with Jboss3.2.1 in my project. I don't have any problems using HSQL. The only problem is bulk delete. I know there is no way to do bulk delete through the hibernate framework. So I used session.connection() to get direct JDBC connection and executed delete scripts. I checked MYSQL database, records had been deleted successfully. The trick thing ...

2. Direct JDBC call and Hibernate    forum.hibernate.org

3. Direct SQL operations sharing a single JDBC connection w/H    forum.hibernate.org

I need to execute some SQL queries that modifies the data used by hibernate (DML operations). I have the following restriction: the application running as a standalone java application and it's using an embedded Apache Derby database, it allows only one connection to database, so I can't open another connection, I have to use the same JDBC connection that hibernate is ...

4. Confusion when using direct jdbc and hibernate together    forum.hibernate.org

Hi, I am using hibernate version: 3.1.3 I have some confusion when using direct jdbc and hibernate together. In my code first I am using jdbc connection directly and in the same connection I want to perform some hibernate stuff. I want to perform the whole thing in one connection so in case of failure everything should be rolled back. So ...