committed by
Greg L. Turnquist
parent
86e67a483c
commit
586092a287
@@ -19,6 +19,7 @@ import java.sql.ResultSet;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.core.io.ResourceLoader;
|
||||
import org.springframework.data.jdbc.core.convert.BasicJdbcConverter;
|
||||
import org.springframework.data.jdbc.core.convert.DefaultJdbcTypeFactory;
|
||||
@@ -73,7 +74,7 @@ class Application {
|
||||
*/
|
||||
@Override
|
||||
public JdbcConverter jdbcConverter(JdbcMappingContext mappingContext, NamedParameterJdbcOperations operations,
|
||||
RelationResolver relationResolver, JdbcCustomConversions conversions, Dialect dialect) {
|
||||
@Lazy RelationResolver relationResolver, JdbcCustomConversions conversions, Dialect dialect) {
|
||||
|
||||
var jdbcTypeFactory = new DefaultJdbcTypeFactory(operations.getJdbcOperations());
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
<name>Spring Data JDBC - Usage with jOOQ</name>
|
||||
<description>Sample project demonstrating Spring Data JDBC features</description>
|
||||
|
||||
<properties>
|
||||
<jooq.version>3.16.6</jooq.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jooq</groupId>
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS category (
|
||||
id INTEGER IDENTITY PRIMARY KEY,
|
||||
name VARCHAR(100),
|
||||
id
|
||||
INTEGER
|
||||
AUTO_INCREMENT
|
||||
PRIMARY
|
||||
KEY,
|
||||
name
|
||||
VARCHAR
|
||||
(
|
||||
100
|
||||
),
|
||||
description VARCHAR(2000),
|
||||
age_group VARCHAR(20)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user