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

Classes in this File | Line Coverage | Branch Coverage | Complexity
AppNamespace |
58% | 7/12
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 = "AppNamespace")
14 |  |
     @SQLDelete(sql = "Update AppNamespace set isDeleted = 1 where id = ?")
15 |  |
     @Where(clause = "isDeleted = 0")
16 | 10 |
     public class AppNamespace 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 = "Comment")
25 |  |
       private String comment;
26 |  |
27 |  |
       public String getAppId() {
28 | 0 |
         return appId;
29 |  |
       }
30 |  |
31 |  |
       public String getComment() {
32 | 0 |
         return comment;
33 |  |
       }
34 |  |
35 |  |
       public String getName() {
36 | 0 |
         return name;
37 |  |
       }
38 |  |
39 |  |
       public void setAppId(String appId) {
40 | 5 |
         this.appId = appId;
41 | 5 |
       }
42 |  |
43 |  |
       public void setComment(String comment) {
44 | 5 |
         this.comment = comment;
45 | 5 |
       }
46 |  |
47 |  |
       public void setName(String name) {
48 | 5 |
         this.name = name;
49 | 5 |
       }
50 |  |
51 |  |
       public String toString() {
52 | 0 |
         return toStringHelper().add("name", name).add("appId", appId).add("comment", comment)
53 | 0 |
             .toString();
54 |  |
       }
55 |  |
     }