Skip to content

Commit 44b0c6d

Browse files
committed
Using the new general association definitions
No SQL_ or CROSS_ is needed any more.
1 parent 2c3b466 commit 44b0c6d

12 files changed

+18
-18
lines changed

data_model_definitions/breeding_pool.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"associations" : {
99
"genotypes" : {
10-
"type" : "sql_hasMany",
10+
"type" : "hasMany",
1111
"target" : "genotype",
1212
"targetKey" : "breeding_pool_id",
1313
"targetStorageType" : "sql",

data_model_definitions/field_plot.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"associations" : {
1212
"genotype" : {
13-
"type" : "sql_belongsTo",
13+
"type" : "belongsTo",
1414
"target" : "genotype",
1515
"targetKey" : "genotype_id",
1616
"targetStorageType" : "sql",

data_model_definitions/genotype.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99

1010
"associations": {
1111
"mother": {
12-
"type": "sql_belongsTo",
12+
"type": "belongsTo",
1313
"target": "individual",
1414
"targetKey": "mother_id",
1515
"targetStorageType": "sql",
1616
"label": "name",
1717
"sublabel": "id"
1818
},
1919
"father": {
20-
"type": "sql_belongsTo",
20+
"type": "belongsTo",
2121
"target": "individual",
2222
"targetKey": "father_id",
2323
"targetStorageType": "sql",
2424
"label": "name",
2525
"sublabel": "id"
2626
},
2727
"breeding_pool": {
28-
"type": "sql_belongsTo",
28+
"type": "belongsTo",
2929
"target": "breeding_pool",
3030
"targetKey": "breeding_pool_id",
3131
"targetStorageType": "sql",

data_model_definitions/individual.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
},
88
"associations" : {
99
"genotype" : {
10-
"type" : "sql_belongsTo",
10+
"type" : "belongsTo",
1111
"target" : "genotype",
1212
"targetKey" : "genotype_id",
1313
"targetStorageType" : "sql",
1414
"label": "name",
1515
"sublabel": "id"
1616
},
1717
"marker_data_snps" : {
18-
"type" : "sql_hasMany",
18+
"type" : "hasMany",
1919
"target" : "marker_data",
2020
"targetKey" : "individual_id",
2121
"targetStorageType" : "sql",

data_model_definitions/marker_data.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"associations" : {
99
"individual" : {
10-
"type" : "sql_belongsTo",
10+
"type" : "belongsTo",
1111
"target" : "individual",
1212
"targetKey" : "individual_id",
1313
"targetStorageType" : "sql",

data_model_definitions/measurement.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"associations": {
1313
"field_plot": {
14-
"type": "sql_belongsTo",
14+
"type": "belongsTo",
1515
"target": "field_plot",
1616
"targetKey": "field_plot_id",
1717
"targetStorageType": "sql",

data_model_definitions/nuc_acid_library_result.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"associations" : {
1414
"sample" : {
15-
"type" : "sql_belongsTo",
15+
"type" : "belongsTo",
1616
"target" : "sample",
1717
"targetKey" : "sample_id",
1818
"targetStorageType" : "sql",

data_model_definitions/role.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"associations" : {
99
"users" : {
10-
"type" : "sql_belongsToMany",
10+
"type" : "belongsToMany",
1111
"target" : "user",
1212
"targetKey" : "userId",
1313
"sourceKey" : "roleId",

data_model_definitions/sample.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
},
1313
"associations" : {
1414
"individual" : {
15-
"type" : "sql_belongsTo",
15+
"type" : "belongsTo",
1616
"target" : "individual",
1717
"targetKey" : "individual_id",
1818
"targetStorageType" : "sql",
1919
"label": "name",
2020
"sublabel": "id"
2121
},
2222
"sequencing_experiment" : {
23-
"type" : "sql_belongsTo",
23+
"type" : "belongsTo",
2424
"target" : "sequencing_experiment",
2525
"targetKey" : "sequencing_experiment_id",
2626
"targetStorageType" : "sql",
2727
"label": "name",
2828
"sublabel": "platform"
2929
},
3030
"library_data" : {
31-
"type" : "sql_hasMany",
31+
"type" : "hasMany",
3232
"target" : "nuc_acid_library_result",
3333
"targetKey" : "sample_id",
3434
"targetStorageType" : "sql",

data_model_definitions/sequencing_experiment.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
},
2121
"associations" : {
2222
"nuc_acid_library_results" : {
23-
"type" : "sql_hasMany",
23+
"type" : "hasMany",
2424
"target" : "nuc_acid_library_result",
2525
"targetKey" : "sequencing_experiment_id",
2626
"targetStorageType" : "sql",
2727
"label": "lab_code",
2828
"sublabel": "file_name"
2929
},
3030
"samples" : {
31-
"type" : "sql_hasMany",
31+
"type" : "hasMany",
3232
"target" : "sample",
3333
"targetKey" : "sequencing_experiment_id",
3434
"targetStorageType" : "sql",

data_model_definitions/transcript_count.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"associations" : {
1111
"sample" : {
12-
"type" : "sql_belongsTo",
12+
"type" : "belongsTo",
1313
"target" : "sample",
1414
"targetKey" : "sample_id",
1515
"targetStorageType" : "sql",

data_model_definitions/user.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"associations" :{
99
"roles" : {
10-
"type" : "sql_belongsToMany",
10+
"type" : "belongsToMany",
1111
"target" : "role",
1212
"targetKey" : "roleId",
1313
"sourceKey" : "userId",

0 commit comments

Comments
 (0)