File: tapkit.yaml

package info (click to toggle)
kwalify 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,860 kB
  • ctags: 1,188
  • sloc: ruby: 8,446; xml: 170; makefile: 37; java: 36
file content (85 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (7)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
##
## original:
##   http://www.spice-of-life.net/tapkit/ja/TapKitUserGuide_J_c5_s6.html#doc7_1532
##

adapter_name: DBI

connection:
  url:      dbi:Mysql:examples
  user:     mysql
  password: mysql

entities:
  -
    name:          Employee
    external_name: EMPLOYEE

    attributes:
      -
        name:          employee_id
        column_name:   EMPLOYEE_ID
        external_type: int
        class_name:    Integer
      -
        name:          name
        column_name:   NAME
        external_type: char
        class_name:    String
        width:         64
      -
        name:          company_id
        column_name:   COMPANY_ID
        external_type: int
        class_name:    Integer

    relationships:
      -
        name:          company
        destination:   Company
        to_many:       false
        joins:
          -
             source:      company_id
             destination: company_id

    primary_key_attributes:
      - employee_id

    class_properties:
      - name
      - company

  -
    name:          Company
    external_name: COMPANY

    attributes:
      -
        name:          company_id
        column_name:   COMPANY_ID
        external_type: int
        class_name:    Integer
      -
        name:          name
        column_name:   NAME
        external_type: char
        class_name:    String
        width:         64

    relationships:
      -
        name:          employees
        destination:   Employee
        to_many:       true
        joins:
          -
             source:      company_id
             destination: company_id

    primary_key_attributes:
      - company_id

    class_properties:
      - name
      - employees