Skip to content

Commit 1f51b92

Browse files
committed
JavaTime converters no longer needed. Bad forced type
1 parent ff368ea commit 1f51b92

File tree

4 files changed

+4
-77
lines changed

4 files changed

+4
-77
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allprojects {
2121

2222
// Using Jitpack so I need the repo name in the group to match.
2323
group = 'com.stubbornjava.StubbornJava'
24-
version = '0.1.24-SNAPSHOT'
24+
version = '0.1.25-SNAPSHOT'
2525

2626
repositories {
2727
mavenLocal()

stubbornjava-common/src/main/java/com/stubbornjava/common/db/jooq/JooqConfig.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@ public static DefaultConfiguration defaultConfigFromDataSource(DataSource ds) {
2424

2525
public static List<ForcedType> defaultForcedTypes() {
2626
return Lists.newLinkedList(Arrays.asList(new ForcedType[] {
27-
forcedType("BOOLEAN", "tinyint", Boolean.class),
28-
forcedType("LocalDate", "date", LocalDateConverter.class),
29-
forcedType("LocalDateTime", "datetime", LocalDateTimeConverter.class)
27+
new ForcedType()
28+
.withName("BOOLEAN")
29+
.withTypes("tinyint")
3030
}));
3131
}
32-
33-
private static ForcedType forcedType(String name, String types, Class<?> clazz) {
34-
ForcedType type = new ForcedType();
35-
type.setName(name);
36-
type.setTypes(types);
37-
type.setConverter(clazz.getName());
38-
return type;
39-
}
4032
}

stubbornjava-common/src/main/java/com/stubbornjava/common/db/jooq/LocalDateConverter.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

stubbornjava-common/src/main/java/com/stubbornjava/common/db/jooq/LocalDateTimeConverter.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)