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