Skip to content

Commit ccf3086

Browse files
author
synapticloop
committed
added in cockroach separate directory for h2zero files
1 parent 6d003ff commit ccf3086

File tree

9 files changed

+54
-1
lines changed

9 files changed

+54
-1
lines changed

build.h2zero.cockroach.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repositories {
2828
}
2929

3030
h2zero {
31-
inFile = 'src/test/resources/sample-include-cockroach.h2zero'
31+
inFile = 'src/test/resources/cockroach/sample-include-cockroach.h2zero'
3232
outDir = '.'
3333
verbose = 'false'
3434
}
File renamed without changes.
File renamed without changes.

src/test/resources/sample-include-cockroach.h2zero renamed to src/test/resources/cockroach/sample-include-cockroach.h2zero

File renamed without changes.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "user_title",
3+
"comments": [
4+
"This is the user title table, which is a constant-generated table for some ",
5+
"of the user titles. This enables quick and easy lookups from within the code",
6+
"for values that do not change."
7+
],
8+
"fields": [
9+
{ "name": "id_user_title", "type": "bigint", "nullable": false, "primary": true },
10+
{ "name": "nm_user_title", "type": "varchar", "length": "32", "nullable": false },
11+
{ "name": "num_order_by", "type": "int", "nullable": false }
12+
],
13+
"constants": [
14+
{ "name": "MR", "values": [ 1, "Mr.", 1 ] },
15+
{ "name": "MRS", "values": [ 2, "Mrs.", 2 ] },
16+
{ "name": "MISS", "values": [ 3, "Miss", 3 ] },
17+
{ "name": "DR", "values": [ 4, "Dr.", 4 ] }
18+
],
19+
"finders": [
20+
{
21+
"name": "findIdUserTitleNmUserTitleOrdered",
22+
"selectClause": "select id_user_title, nm_user_title from user_title order by num_order_by",
23+
"selectFields": [
24+
{ "name": "id_user_title", "type": "bigint" },
25+
{ "name": "nm_user_title", "type": "varchar" }
26+
],
27+
"unique": false
28+
},
29+
{
30+
"name": "findAllOrdered",
31+
"orderBy": "num_order_by",
32+
"unique": false
33+
}
34+
]
35+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "user_type",
3+
"comments": [
4+
"This is the user type table, which is a constant-generated table for all",
5+
"of the user types. This enables quick and easy lookups from within the code",
6+
"for values that do not change."
7+
],
8+
"fields": [
9+
{ "name": "id_user_type", "type": "bigint", "nullable": false, "primary": true },
10+
{ "name": "nm_user_type", "type": "varchar", "length": "32", "nullable": false }
11+
],
12+
"constants": [
13+
{ "name": "NORMAL", "values": [ 1, "normal" ] },
14+
{ "name": "SPECIAL", "values": [ 2, "special" ] },
15+
{ "name": "ADMIN", "values": [ 3, "admin" ] },
16+
{ "name": "SUPER_ADMIN", "values": [ 4, "super admin" ] }
17+
]
18+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)