View Javadoc
1   package org.oxerr.freeradius.domain;
2   
3   import java.io.Serializable;
4   
5   import javax.persistence.Access;
6   import javax.persistence.AccessType;
7   import javax.persistence.Column;
8   import javax.persistence.Entity;
9   import javax.persistence.Id;
10  import javax.persistence.Table;
11  
12  @Entity
13  @Access(AccessType.PROPERTY)
14  @Table(name = "radgroupcheck")
15  public class RadGroupCheck implements Serializable {
16  
17  	private static final long serialVersionUID = 2016101001L;
18  
19  	private long id;
20  	private String groupName;
21  	private String attribute;
22  	private String op;
23  	private String value;
24  
25  	@Id
26  	@Column(name = "id")
27  	public long getId() {
28  		return id;
29  	}
30  
31  	public void setId(long id) {
32  		this.id = id;
33  	}
34  
35  	@Column(name = "groupname")
36  	public String getGroupName() {
37  		return groupName;
38  	}
39  
40  	public void setGroupName(String groupName) {
41  		this.groupName = groupName;
42  	}
43  
44  	@Column(name = "attribute")
45  	public String getAttribute() {
46  		return attribute;
47  	}
48  
49  	public void setAttribute(String attribute) {
50  		this.attribute = attribute;
51  	}
52  
53  	@Column(name = "op")
54  	public String getOp() {
55  		return op;
56  	}
57  
58  	public void setOp(String op) {
59  		this.op = op;
60  	}
61  
62  	@Column(name = "value")
63  	public String getValue() {
64  		return value;
65  	}
66  
67  	public void setValue(String value) {
68  		this.value = value;
69  	}
70  
71  	/**
72  	 * {@inheritDoc}
73  	 */
74  	@Override
75  	public String toString() {
76  		return String.format("%s.%s %s %s",
77  			getGroupName(), getAttribute(), getOp(), getValue());
78  	}
79  
80  }