File tree 3 files changed +16
-3
lines changed
immutables/src/main/java/example/springdata/jdbc/immutables
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import org .springframework .boot .autoconfigure .SpringBootApplication ;
21
21
import org .springframework .context .annotation .Configuration ;
22
+ import org .springframework .context .annotation .Lazy ;
22
23
import org .springframework .core .io .ResourceLoader ;
23
24
import org .springframework .data .jdbc .core .convert .BasicJdbcConverter ;
24
25
import org .springframework .data .jdbc .core .convert .DefaultJdbcTypeFactory ;
@@ -73,7 +74,7 @@ public ImmutablesJdbcConfiguration(ResourceLoader resourceLoader) {
73
74
*/
74
75
@ Override
75
76
public JdbcConverter jdbcConverter (JdbcMappingContext mappingContext , NamedParameterJdbcOperations operations ,
76
- RelationResolver relationResolver , JdbcCustomConversions conversions , Dialect dialect ) {
77
+ @ Lazy RelationResolver relationResolver , JdbcCustomConversions conversions , Dialect dialect ) {
77
78
78
79
var jdbcTypeFactory = new DefaultJdbcTypeFactory (operations .getJdbcOperations ());
79
80
Original file line number Diff line number Diff line change 14
14
<name >Spring Data JDBC - Usage with jOOQ</name >
15
15
<description >Sample project demonstrating Spring Data JDBC features</description >
16
16
17
+ <properties >
18
+ <jooq .version>3.16.6</jooq .version>
19
+ </properties >
20
+
17
21
<dependencies >
18
22
<dependency >
19
23
<groupId >org.jooq</groupId >
Original file line number Diff line number Diff line change 1
1
CREATE TABLE IF NOT EXISTS category (
2
- id INTEGER IDENTITY PRIMARY KEY ,
3
- name VARCHAR (100 ),
2
+ id
3
+ INTEGER
4
+ AUTO_INCREMENT
5
+ PRIMARY
6
+ KEY,
7
+ name
8
+ VARCHAR
9
+ (
10
+ 100
11
+ ),
4
12
description VARCHAR (2000 ),
5
13
age_group VARCHAR (20 )
6
14
);
You can’t perform that action at this time.
0 commit comments