1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package org.perfectjpattern.example.datamodel; |
22 |
|
|
23 |
|
import javax.persistence.*; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@author |
29 |
|
@version |
30 |
|
|
31 |
|
@Entity |
32 |
|
public |
|
|
| 71.4% |
Uncovered Elements: 6 (21) |
Complexity: 10 |
Complexity Density: 0.91 |
|
33 |
|
class Movie |
34 |
|
{ |
35 |
|
|
36 |
|
|
37 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
38 |
3
|
public ... |
39 |
|
Movie() |
40 |
|
{ |
41 |
|
|
42 |
|
} |
43 |
|
|
44 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
45 |
3
|
public ... |
46 |
|
Movie(String aDirector, String aTitle, int aYear) |
47 |
|
{ |
48 |
3
|
theDirector = aDirector; |
49 |
3
|
theTitle = aTitle; |
50 |
3
|
theYear = aYear; |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
4
|
public final Long ... |
60 |
|
getId() |
61 |
|
{ |
62 |
4
|
return theId; |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
@param |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public final void ... |
72 |
|
setId(Long anId) |
73 |
|
{ |
74 |
0
|
theId = anId; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
@return |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
4
|
public final String ... |
84 |
|
getDirector() |
85 |
|
{ |
86 |
4
|
return theDirector; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
@param |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0
|
public final void ... |
96 |
|
setDirector(String anDirector) |
97 |
|
{ |
98 |
0
|
theDirector = anDirector; |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
@return |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
4
|
public final String ... |
108 |
|
getTitle() |
109 |
|
{ |
110 |
4
|
return theTitle; |
111 |
|
} |
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
@param |
118 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
0
|
public final void ... |
120 |
|
setTitle(String anTitle) |
121 |
|
{ |
122 |
0
|
theTitle = anTitle; |
123 |
|
} |
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
@return |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
4
|
public final int ... |
132 |
|
getYear() |
133 |
|
{ |
134 |
4
|
return theYear; |
135 |
|
} |
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
@param |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
1
|
public final void ... |
144 |
|
setYear(int anYear) |
145 |
|
{ |
146 |
1
|
theYear = anYear; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
@Id |
153 |
|
@GeneratedValue(strategy = GenerationType.AUTO) |
154 |
|
private Long theId; |
155 |
|
private String theDirector; |
156 |
|
private String theTitle; |
157 |
|
private int theYear; |
158 |
|
} |