File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change 23
23
//convert: the value can be changed by a function call before it is stored into database or
24
24
//after it is read from database
25
25
"convert" : {
26
- "enabled" : false ,
27
- "items" :[{
28
- "table" : " user" ,
29
- "column" : " password" ,
30
- "method" : {
31
- //after_db_read: name of the method which is called after reading from database, signature: void([const] std::shared_ptr [&])
32
- "after_db_read" : " decrypt_password" ,
33
- //before_db_write: name of the method which is called before writing to database, signature: void([const] std::shared_ptr [&])
34
- "before_db_write" : " encrypt_password"
35
- },
36
- "includes" : [
37
- " \" file_local_search_path.h\" " ," <file_in_global_search_path.h>"
38
- ]
39
- }]
26
+ "enabled" : false ,
27
+ "items" : [
28
+ {
29
+ "table" : " user" ,
30
+ "column" : " password" ,
31
+ "method" : {
32
+ //after_db_read: name of the method which is called after reading from database, signature: void([const] std::shared_ptr [&])
33
+ "after_db_read" : " decrypt_password" ,
34
+ //before_db_write: name of the method which is called before writing to database, signature: void([const] std::shared_ptr [&])
35
+ "before_db_write" : " encrypt_password"
36
+ },
37
+ "includes" : [
38
+ " \" file_local_search_path.h\" " ,
39
+ " <file_in_global_search_path.h>"
40
+ ]
41
+ }
42
+ ]
40
43
},
41
44
"relationships" : {
42
45
"enabled" : false ,
43
- "items" : [{
46
+ "items" : [
47
+ {
44
48
"type" : " has one" ,
45
49
"original_table_name" : " products" ,
46
50
"original_table_alias" : " product" ,
101
105
// generate_base_only: false by default. Set to true to avoid overwriting custom subclasses.
102
106
"generate_base_only" : false
103
107
}
104
- }
108
+ }
You can’t perform that action at this time.
0 commit comments