Top "Spring-jdbc" questions

Spring JDBC is a part of Data access layer provided by Spring.

spring-jdbc vs spring-data-jdbc and what are they supporting

I'm curious what is the difference between the spring-jdbc (what I missing in the newest spring release) and spring-data-jdbc. Is …

java spring jdbc spring-jdbc spring-data-jdbc
Paged queries with JdbcTemplate

I'm currently working on a migration project, to migrate data from the old db to the new one (please do …

java spring jdbctemplate spring-jdbc
spring boot - managing transactions & multiple datasources

I tried to extend the Managing Transactions example in the spring boot guides to two datasources, but the @Transaction annotation …

spring transactions spring-boot spring-jdbc
Overriding BeanPropertyRowMapper to Support JodaTime DateTime

My Domain object has couple of Joda-Time DateTime fields. When I'm reading database values using SimpleJdbcTemplate: Patient patient = jdbc.queryForObject(…

java spring jodatime spring-jdbc
Spring repository method which are returning Java 8 stream doesn't close JDBC connection

I have a Spring data repository: @Repository interface SomeRepository extends CrudRepository<Entity, Long> { Stream<Entity> streamBySmth(…

java spring spring-data java-stream spring-jdbc
SQLSTATE(08006), ErrorCode(17002) When Using HikariCP JDBC Connection Pool

In our Server we are using scheduler to perform a particular tasks. There are already many scheduler running on the …

spring hibernate spring-jdbc jdbctemplate hikaricp
How to combine multiple parameter sources in Spring JDBC?

The database methods in Spring JDBC accept a single parameter source. For example - int org.springframework.jdbc.core.namedparam.…

java spring spring-jdbc
Spring-Boot, Can't save unicode string in MySql using spring-data JPA

I have my application.properties set up like this : spring.datasource.username = root spring.datasource.password = root spring.datasource.url = …

mysql spring spring-boot unicode spring-jdbc
Spring Boot 2 Embedded Tomcat Jndi Datasource Configuration

Good morning in my timezone I already have follow this two Stack Overflow questions : Spring Boot Using Embedded Tomcat with …

spring-boot spring-jdbc embedded-tomcat-8
Should I close JNDI-obtained data source?

Update: Apparently Tomcat, starting with 7.0.11, closes the DataSource for you, so it's not available in the webapp's contextDestroyed. See: https://…

spring tomcat7 datasource jndi spring-jdbc