📄 grouppermissionpk.java
字号:
package org.javabb.vo;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/*
* Copyright 2004 JavaFree.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* $Id: GroupPermissionPK.java,v 1.2.8.2 2006/04/17 17:46:54 daltoncamargo Exp $
* @author Dalton Camargo - <a href="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
*/
public class GroupPermissionPK implements Serializable {
/** identifier field */
private Long groupId;
/** identifier field */
private Long idForum;
/** full constructor */
public GroupPermissionPK(Long groupId, Long idForum) {
this.groupId = groupId;
this.idForum = idForum;
}
/** default constructor */
public GroupPermissionPK() {
}
/**
* @hibernate.property
* column="group_id"
* length="8"
*
*/
public Long getGroupId() {
return this.groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
/**
* @hibernate.property
* column="id_forum"
* length="8"
*
*/
public Long getIdForum() {
return this.idForum;
}
public void setIdForum(Long idForum) {
this.idForum = idForum;
}
public String toString() {
return new ToStringBuilder(this)
.append("groupId", getGroupId())
.append("idForum", getIdForum())
.toString();
}
public boolean equals(Object other) {
if ( !(other instanceof GroupPermissionPK) ) return false;
GroupPermissionPK castOther = (GroupPermissionPK) other;
return new EqualsBuilder()
.append(this.getGroupId(), castOther.getGroupId())
.append(this.getIdForum(), castOther.getIdForum())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder()
.append(getGroupId())
.append(getIdForum())
.toHashCode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -