##### Coverage Report - com.ctrip.framework.apollo.common.entity.App

Classes in this File | Line Coverage | Branch Coverage | Complexity
App |
0% | 0/24
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.common.entity;
2 |  |
3 |  |
     import org.hibernate.annotations.SQLDelete;
4 |  |
     import org.hibernate.annotations.Where;
5 |  |
6 |  |
     import javax.persistence.Column;
7 |  |
     import javax.persistence.Entity;
8 |  |
     import javax.persistence.Table;
9 |  |
10 |  |
     @Entity
11 |  |
     @Table(name = "App")
12 |  |
     @SQLDelete(sql = "Update App set isDeleted = 1 where id = ?")
13 |  |
     @Where(clause = "isDeleted = 0")
14 | 0 |
     public class App extends BaseEntity {
15 |  |
16 |  |
       @Column(name = "Name", nullable = false)
17 |  |
       private String name;
18 |  |
19 |  |
       @Column(name = "AppId", nullable = false)
20 |  |
       private String appId;
21 |  |
22 |  |
       @Column(name = "OrgId", nullable = false)
23 |  |
       private String orgId;
24 |  |
25 |  |
       @Column(name = "OrgName", nullable = false)
26 |  |
       private String orgName;
27 |  |
28 |  |
       @Column(name = "OwnerName", nullable = false)
29 |  |
       private String ownerName;
30 |  |
31 |  |
       @Column(name = "OwnerEmail", nullable = false)
32 |  |
       private String ownerEmail;
33 |  |
34 |  |
       public String getAppId() {
35 | 0 |
         return appId;
36 |  |
       }
37 |  |
38 |  |
       public String getName() {
39 | 0 |
         return name;
40 |  |
       }
41 |  |
42 |  |
       public String getOrgId() {
43 | 0 |
         return orgId;
44 |  |
       }
45 |  |
46 |  |
       public String getOrgName() {
47 | 0 |
         return orgName;
48 |  |
       }
49 |  |
50 |  |
       public String getOwnerEmail() {
51 | 0 |
         return ownerEmail;
52 |  |
       }
53 |  |
54 |  |
       public String getOwnerName() {
55 | 0 |
         return ownerName;
56 |  |
       }
57 |  |
58 |  |
       public void setAppId(String appId) {
59 | 0 |
         this.appId = appId;
60 | 0 |
       }
61 |  |
62 |  |
       public void setName(String name) {
63 | 0 |
         this.name = name;
64 | 0 |
       }
65 |  |
66 |  |
       public void setOrgId(String orgId) {
67 | 0 |
         this.orgId = orgId;
68 | 0 |
       }
69 |  |
70 |  |
       public void setOrgName(String orgName) {
71 | 0 |
         this.orgName = orgName;
72 | 0 |
       }
73 |  |
74 |  |
       public void setOwnerEmail(String ownerEmail) {
75 | 0 |
         this.ownerEmail = ownerEmail;
76 | 0 |
       }
77 |  |
78 |  |
       public void setOwnerName(String ownerName) {
79 | 0 |
         this.ownerName = ownerName;
80 | 0 |
       }
81 |  |
82 |  |
       public String toString() {
83 | 0 |
         return toStringHelper().add("name", name).add("appId", appId)
84 | 0 |
             .add("orgId", orgId)
85 | 0 |
             .add("orgName", orgName)
86 | 0 |
             .add("ownerName", ownerName)
87 | 0 |
             .add("ownerEmail", ownerEmail).toString();
88 |  |
       }
89 |  |
     }