View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-3-7 下午05:33:30
4    */
5   package gboat2.web.model;
6   
7   import gboat2.base.core.annotation.Field;
8   import gboat2.base.core.annotation.Relation;
9   import gboat2.base.core.annotation.RelationType;
10  import gboat2.base.core.annotation.Relations;
11  
12  /**
13   * 用户组,角色VO
14   * @author zhaop
15   * @since jdk1.6
16   * @date 2012-3-7
17   *  
18   */
19  @Relations(base = GroupRoleMapper.class, value = {
20  		@Relation(refer = Group.class, baseColumn = "groupId", referColumn = "groupId", type = RelationType.INNER),
21  		@Relation(refer = Role.class, baseColumn = "roleId", referColumn = "roleId") })
22  public class GroupRoleVO extends GroupRoleMapper {
23  
24  	/** 角色名称 */
25  	@Field(clazz = Role.class)
26  	private String roleName;
27  
28  	/** 角色编号*/
29  	@Field(clazz = Role.class)
30  	private String roleCode;
31  
32  	/** 用户组名称 */
33  	@Field(clazz = Group.class)
34  	private String groupName;
35  
36  	/** 用户组名称 */
37  	@Field(clazz = Group.class)
38  	private String groupCode;
39  
40  	public String getRoleName() {
41  		return roleName;
42  	}
43  
44  	public void setRoleName(String roleName) {
45  		this.roleName = roleName;
46  	}
47  
48  	public String getGroupName() {
49  		return groupName;
50  	}
51  
52  	public void setGroupName(String groupName) {
53  		this.groupName = groupName;
54  	}
55  
56  	public String getRoleCode() {
57  		return roleCode;
58  	}
59  
60  	public String getGroupCode() {
61  		return groupCode;
62  	}
63  
64  	public void setRoleCode(String roleCode) {
65  		this.roleCode = roleCode;
66  	}
67  
68  	public void setGroupCode(String groupCode) {
69  		this.groupCode = groupCode;
70  	}
71  
72  }