1 |
|
package io.sunshower.model.core.auth; |
2 |
|
|
3 |
|
import io.sunshower.model.core.Schemata; |
4 |
|
import io.sunshower.model.core.io.File; |
5 |
|
import io.sunshower.persistence.core.DistributableEntity; |
6 |
|
import javax.persistence.*; |
7 |
|
|
8 |
|
@Entity |
9 |
|
@Table(name = "TENANT_DETAILS", schema = Schemata.SUNSHOWER) |
|
|
| 75% |
Uncovered Elements: 2 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
10 |
|
public class TenantDetails extends DistributableEntity { |
11 |
|
|
12 |
|
@OneToOne |
13 |
|
@JoinColumn(name = "tenant_id") |
14 |
|
private Tenant tenant; |
15 |
|
|
16 |
|
@OneToOne(cascade = CascadeType.ALL) |
17 |
|
@JoinColumn(name = "root_id", insertable = false, updatable = false) |
18 |
|
private File root; |
19 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
20 |
0 |
public Tenant getTenant() {... |
21 |
0 |
return tenant; |
22 |
|
} |
23 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
24 |
4 |
public void setTenant(Tenant tenant) {... |
25 |
4 |
this.tenant = tenant; |
26 |
|
} |
27 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
28 |
2 |
public File getRoot() {... |
29 |
2 |
return root; |
30 |
|
} |
31 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
32 |
1 |
public void setRoot(File root) {... |
33 |
1 |
this.root = root; |
34 |
|
} |
35 |
|
} |