Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.model.core.auth

File TenantDetails.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart8.png
14% of files have more coverage

Code metrics

0
4
4
1
35
27
4
1
1
4
1

Classes

Class Line # Actions
TenantDetails 10 4 4
0.7575%
 

Contributing tests

This file is covered by 2 tests. .

Source view

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)
 
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   
 
20  0 toggle public Tenant getTenant() {
21  0 return tenant;
22    }
23   
 
24  4 toggle public void setTenant(Tenant tenant) {
25  4 this.tenant = tenant;
26    }
27   
 
28  2 toggle public File getRoot() {
29  2 return root;
30    }
31   
 
32  1 toggle public void setRoot(File root) {
33  1 this.root = root;
34    }
35    }