-
Notifications
You must be signed in to change notification settings - Fork 16
/
jooq.gradle
50 lines (46 loc) · 1.69 KB
/
jooq.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
jooq {
configuration {
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://localhost:5432/reportportal'
user = 'rpuser'
password = 'rppass'
}
generator {
strategy {
name = 'org.jooq.codegen.example.JPrefixGeneratorStrategy'
// ...
}
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = (hasDBSchema ? getProperty('DB_SCHEMA_POSTGRES') : 'public')
// ...
excludes = 'batch_.*|schema_migrations'
forcedTypes {
forcedType {
// Specify the Java type of your custom type. This corresponds to the Converter's <U> type.
userType = "java.time.Instant"
// Associate that custom type with your converter.
converter = "com.epam.ta.reportportal.dao.converters.JooqInstantConverter"
// A Java regex matching fully-qualified columns, attributes, parameters. Use the pipe to separate several expressions.
types = "TIMESTAMP"
}
}
}
generate {
pojos = false
jpaAnnotations = false
routines = false
deprecationOnUnknownTypes = false
records = true
}
target {
packageName = 'com.epam.ta.reportportal.jooq'
directory = 'src/main/java/'
}
}
}
}
//generateSampleJooqSchemaSource {
// enabled = false
//}