Subversion Repositories SmartDukaan

Rev

Rev 31860 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31860 Rev 35659
Line 26... Line 26...
26
	private int categoryId;
26
	private int categoryId;
27
 
27
 
28
	@Column(name = "visibility")
28
	@Column(name = "visibility")
29
	private boolean visibility;
29
	private boolean visibility;
30
 
30
 
-
 
31
	@Column(name = "active")
-
 
32
	private boolean active;
-
 
33
 
31
 
34
 
32
	@Transient
35
	@Transient
33
	TicketCategory ticketCategory;
36
	TicketCategory ticketCategory;
34
 
37
 
35
	public int getCategoryId() {
38
	public int getCategoryId() {
Line 66... Line 69...
66
 
69
 
67
	public String getDescription() {
70
	public String getDescription() {
68
		return description;
71
		return description;
69
	}
72
	}
70
 
73
 
-
 
74
	public boolean isActive() {
-
 
75
		return active;
-
 
76
	}
-
 
77
 
-
 
78
	public void setActive(boolean active) {
-
 
79
		this.active = active;
-
 
80
	}
-
 
81
 
71
	@Override
82
	@Override
72
	public String toString() {
83
	public String toString() {
73
		return "TicketSubCategory{" +
84
		return "TicketSubCategory{" +
74
				"id=" + id +
85
				"id=" + id +
75
				", categoryId=" + categoryId +
86
				", categoryId=" + categoryId +
76
				", visibility=" + visibility +
87
				", visibility=" + visibility +
-
 
88
				", active=" + active +
77
				", ticketCategory=" + ticketCategory +
89
				", ticketCategory=" + ticketCategory +
78
				", name='" + name + '\'' +
90
				", name='" + name + '\'' +
79
				", description='" + description + '\'' +
91
				", description='" + description + '\'' +
80
				'}';
92
				'}';
81
	}
93
	}
Line 83... Line 95...
83
	@Override
95
	@Override
84
	public boolean equals(Object o) {
96
	public boolean equals(Object o) {
85
		if (this == o) return true;
97
		if (this == o) return true;
86
		if (o == null || getClass() != o.getClass()) return false;
98
		if (o == null || getClass() != o.getClass()) return false;
87
		TicketSubCategory that = (TicketSubCategory) o;
99
		TicketSubCategory that = (TicketSubCategory) o;
88
		return id == that.id && categoryId == that.categoryId && visibility == that.visibility && Objects.equals(ticketCategory, that.ticketCategory) && Objects.equals(name, that.name) && Objects.equals(description, that.description);
100
		return id == that.id && categoryId == that.categoryId && visibility == that.visibility && active == that.active && Objects.equals(ticketCategory, that.ticketCategory) && Objects.equals(name, that.name) && Objects.equals(description, that.description);
89
	}
101
	}
90
 
102
 
91
	@Override
103
	@Override
92
	public int hashCode() {
104
	public int hashCode() {
93
		return Objects.hash(id, categoryId, visibility, ticketCategory, name, description);
105
		return Objects.hash(id, categoryId, visibility, active, ticketCategory, name, description);
94
	}
106
	}
95
 
107
 
96
	public boolean isVisibility() {
108
	public boolean isVisibility() {
97
		return visibility;
109
		return visibility;
98
	}
110
	}