Skip to content

Commit

Permalink
#359 #357 catch out common fields
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Mar 13, 2018
1 parent d8368f7 commit 9ecaf24
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.vip.saturn.job.console.mybatis.entity;

/**
* @author hebelala
*/
public class CommonFields2 extends CommonFields {

private String key;
private String name;
private String description;

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,6 @@
/**
* @author hebelala
*/
public class Permission extends CommonFields {
public class Permission extends CommonFields2 {

private String key;
private String name;
private String description;

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,10 @@
/**
* @author hebelala
*/
public class Role extends CommonFields {
public class Role extends CommonFields2 {

private String key;
private String name;
private String description;
private List<RolePermission> rolePermissions;

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public List<RolePermission> getRolePermissions() {
return rolePermissions;
}
Expand Down

0 comments on commit 9ecaf24

Please sign in to comment.