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

Classes in this File | Line Coverage | Branch Coverage | Complexity
App |
73% | 11/15
N/A | N/A
| 1.0;1

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