jdbc « JPA « Spring Q&A





1. How to correctly override BasicDataSource for Spring and Hibernate    stackoverflow.com

Currently I have following basic data source in Spring:

<bean id="dbcpDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver" />
    <property name="url" value="jdbc:mysql://localhost/test?relaxAutoCommit=true" />
    ...
</bean>
Now I ...

2. Is it possible to use bitronix PoolingDataSource without BTM?    stackoverflow.com

Is it possible to use bitronix.tm.resource.jdbc.PoolingDataSource without using bitronix transaction manager and using standalone JBossTS instead? For database access I use Hibernate, with transaction demarcation done with Spring's @Transactional annotation ...

3. Yet another jdbc:mysql no suitable driver, Spring+Hibernate    stackoverflow.com

I'm trying to get a MySQL database connection running in a Spring/Hibernate project in NetBeans. However, I always get a

java.sql.SQLException: No suitable driver found for "jdbc:mysql://127.0.0.1/test"
exception when deploying. None of the ...

4. How to use JDBC on working Hibernate/Spring web-app?    stackoverflow.com

I have working Hibernate/Spring web-app (HibernateDaoSupport, getHibernateTemplate(), etc). For several tasks i need to use JDBC (jdbcTemplate ?). How to do it in that scenerio ?

5. jdbc MySQLTransientConnectionException exception with a particular query in production    stackoverflow.com

I have a Spring+hibernate+mysql+jstl architecture, running in a linux CENTOS production enviroment. I added a quartz (schedualer) module, my friend quartz checks every 10 seconds a folder for new files, and if ...

6. spring jdbc over hibernate    stackoverflow.com

i am using struts and spring jdbc template right in my Application. and I have to use hibernate template in our code. ...

7. Spring DB support best practices    stackoverflow.com

I'm refreshing my Spring knowledge, reading the reference documentation for spring 3.1. Last time i read about spring as best practice was set JdbcDaoSupport and HibernateDaoSupport, now they are not even ...

8. Embedded JDBC DB with Simple Spring Hibernate Utility (Spring 3.0)    forum.springsource.org

Embedded JDBC DB with Simple Spring Hibernate Utility (Spring 3.0) Hi, i've created the Hibernate project using Spring Template Project. Two domain objects, a JUnit test, app-context.xml and the persistence-context.xml were ...

9. Combining Hibernate and JDBC DAOs    forum.springsource.org

Combining Hibernate and JDBC DAOs I have read the Spring reference documentation and the J2EE without EJB book, but I am still in search of a good answer to this question: ...





10. Combining Hibernate and JDBC DAOs    forum.springsource.org

11. Can you use both Hibernate & jdbc dao in same transactio    forum.springsource.org

Additionally, HibernateTransactionManager can export the JDBC Connection used by Hibernate to plain JDBC access code. This allows for high level transaction demarcation with mixed Hibernate/JDBC data access completely without JTA, as ...

12. jdbc:inbound-channel-adapter and hibernate    forum.springsource.org

Hi! I wrote an application, where I use Hibernate to data processing. I have to make a table-triggered processing. I did id with jdbc:inbound-channel-adapter, but the result set, what I get, ...

13. Mixing jdbc and hibernate in same trx    forum.springsource.org

It is possible to mix these templates within the same transaction as long as they use the same datasource. There are, also, some threads on the forums about using Hibernate and ...

14. Hybrid DAO: Hibernate and JDBC    forum.springsource.org

Hello, The JDBC/HibernateDaoSupport classes are wonderful. Hibernate is helping, but I need bulk delete. 1SQL Delete instead of 40k for the children. EJB3/Hibernate 3 is supposed to support this, but I ...

15. Spring JDBC or Hibernate    forum.springsource.org

Spring JDBC or Hibernate I'm doing a new web app and just starting out w/ spring and wondering if I should use Spring JDBC or Hibernate. I've not used either one ...

16. Hibernate ans Spring JDBC    forum.springsource.org

Hi All, Has anyone used both hibernate and spring jdbc in a single project .If so how did you implement it.How much did u control it as a part of framework ...





17. org.springframework.jdbc.UncategorizedSQLException : Hibernate operation: [...]    forum.springsource.org

Sep 17th, 2006, 08:39 PM #1 lynx View Profile View Forum Posts Private Message Junior Member Join Date Sep 2006 Posts 5 org.springframework.jdbc.UncategorizedSQLException : Hibernate operation: [...] I am getting the ...

18. Mixing JPA and JDBC code: CGLIB enhancement failure    forum.springsource.org

Mixing JPA and JDBC code: CGLIB enhancement failure Hi guys, Here's the scenario. An unproxied business service with absolutely no transaction code (not even JDBC-based) loads data from a database through ...

19. Mixing Hibernate and jdbc useTransactionAwareDataSource question    forum.springsource.org

Mixing Hibernate and jdbc useTransactionAwareDataSource question I'm hoping that someone can help me answer what I believe is a really easy question: We are slowly switching over from using jdbcTemplate with ...

20. More problems mixing JPA and JDBC    forum.springsource.org

More problems mixing JPA and JDBC Hello once more, I'm still struggling to introduce JPA code into the legacy JDBC-based code base, this time with the classic LazyInitializationException. Most business service ...

21. Mixing JDBC and Hibernate    forum.springsource.org

Mixing JDBC and Hibernate Hi all, I am currently using Spring and Hibernate. But for some complex read statements i want to use Jdbc(Template). I searched the forum for a long ...

22. Hibernate and JDBC a dangerous mix    forum.springsource.org

Hibernate and JDBC a dangerous mix Hi, We currently have a Spring 2.0 web site written using Spring JDBC template which is very clean and works well. We are now slowly ...

23. Slow Hibernate compare to JDBC query    forum.springsource.org

Dec 21st, 2006, 03:20 AM #1 Meton View Profile View Forum Posts Private Message Junior Member Join Date Dec 2006 Posts 11 Slow Hibernate compare to JDBC query Hello everyone I`m ...

24. Spring JDBC OR Hibernate ?    forum.springsource.org

We are having problems with Hibernate communicating to legacy application as its business logic is in PL/SQL Stored procedures. So we are thinking to use JDBC . Is Spring JDBC similar ...

25. doubt: jdbc and Hibernate can both work together??? (jasperreport doubt)    forum.springsource.org

doubt: jdbc and Hibernate can both work together??? (jasperreport doubt) Hi guys after to have a successful Integration for Hibernate/springmvc/jasperreports in http://forum.springframework.org/showthread.php?t=37441 i have now a doubt. i hope that our ...

26. Spring Mixed Jdbc / Jpa Example    forum.springsource.org

Spring Mixed Jdbc / Jpa Example In Springs Documentation i read the following: "Spring JPA allows a configured JpaTransactionManager to expose a JPA transaction to JDBC access code that accesses the ...

27. using hibernate and jdbc in spring    forum.springsource.org

using hibernate and jdbc in spring in my project, i use both hibernate and jdbc (few jdbc, much more hibernate). transaction controled by spring. here is my question: when i use ...

28. Problem with Hibernate And JDBC    forum.springsource.org

Problem with Hibernate And JDBC I'm having a vexing problem with Spring Hibernate and JDBC that I can't get around. I've got a simple POJO object that maps 1:1 with a ...

29. interface org.hibernate.jdbc.ConnectionWrapper is not visible    forum.springsource.org

May 23rd, 2008, 02:26 PM #1 tsc View Profile View Forum Posts Private Message Junior Member Join Date Feb 2008 Posts 15 interface org.hibernate.jdbc.ConnectionWrapper is not visible In my application, I ...

30. JPA and JDBC toe-stepping question    forum.springsource.org

31. Problems with connecting to MySQL w/ hibernate & jdbc    forum.springsource.org

Problems with connecting to MySQL w/ hibernate & jdbc Hi, I'm running a mysql server and I'm trying to get hibernate + annotation to connect with the database (using the jdbc ...

32. interface org.hibernate.jdbc.ConnectionWrapper is not visible    forum.springsource.org

interface org.hibernate.jdbc.ConnectionWrapper is not visible Hi, I'm wondering if anyone has come up with a workaround for this problem: http://jira.springframework.org/browse/SPR-5036 I've tried in several ways, at the moment I don't use ...

33. ransaction with both Hibernate and JDBC?    forum.springsource.org

ransaction with both Hibernate and JDBC? Our application is using lots of session bean which are using CMT and accessing with many DAOs with large legacy code base. So we are ...

34. org.hibernate.jdbc.BorrowedConnectionProxy when testing    forum.springsource.org

org.hibernate.jdbc.BorrowedConnectionProxy when testing Hi all, I have the this error while trying to test a service, and trying to do what is described in the guide Code: Code: super.countRowsInTable("TABLE_TO_COUNT") and this ...

35. org.hibernate.jdbc.BorrowedConnectionProxy when testing    forum.springsource.org

org.hibernate.jdbc.BorrowedConnectionProxy when testing Hi all, I have the this error while trying to test a service, and trying to do what is described in the guide Code: super.countRowsInTable("TABLE_TO_COUNT") and this give ...

36. Mixing JDBC and Hibernate in same DAO    forum.springsource.org

Aug 30th, 2004, 05:09 AM #1 shaby775 View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Posts 105 Mixing JDBC and Hibernate in same DAO Hello, I ...

38. Spring JDBC OR Hibernate    forum.hibernate.org