⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grouppermission.java

📁 javaBB,一套很不錯的JSP源碼,特共享給大家
💻 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: GroupPermission.java,v 1.2.8.2 2006/04/17 17:46:49 daltoncamargo Exp $
 * @author Dalton Camargo - <a href="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
 */
/** 
 *        @hibernate.class
 *         table="jbb_group_permission"
 *     
*/
public class GroupPermission implements Serializable {

    /** identifier field */
    private org.javabb.vo.GroupPermissionPK comp_id;

    /** nullable persistent field */
    private Long permissionType;

    /** nullable persistent field */
    private org.javabb.vo.Forum forum;

    /** nullable persistent field */
    private org.javabb.vo.Group group;

    /** full constructor */
    public GroupPermission(org.javabb.vo.GroupPermissionPK comp_id, Long permissionType, org.javabb.vo.Forum forum, org.javabb.vo.Group jbbGroup) {
        this.comp_id = comp_id;
        this.permissionType = permissionType;
        this.forum = forum;
        this.group = jbbGroup;
    }

    /** default constructor */
    public GroupPermission() {
    }

    /** minimal constructor */
    public GroupPermission(org.javabb.vo.GroupPermissionPK comp_id) {
        this.comp_id = comp_id;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *         
     */
    public org.javabb.vo.GroupPermissionPK getComp_id() {
        return this.comp_id;
    }

    public void setComp_id(org.javabb.vo.GroupPermissionPK comp_id) {
        this.comp_id = comp_id;
    }

    /** 
     *            @hibernate.property
     *             column="permission_type"
     *             length="8"
     *         
     */
    public Long getPermissionType() {
        return this.permissionType;
    }

    public void setPermissionType(Long permissionType) {
        this.permissionType = permissionType;
    }

    /** 
     *            @hibernate.many-to-one
     *             update="false"
     *             insert="false"
     *         
     *            @hibernate.column
     *             name="id_forum"
     *         
     */
    public org.javabb.vo.Forum getForum() {
        return this.forum;
    }

    public void setForum(org.javabb.vo.Forum forum) {
        this.forum = forum;
    }

    /** 
     *            @hibernate.many-to-one
     *             update="false"
     *             insert="false"
     *         
     *            @hibernate.column
     *             name="group_id"
     *         
     */
    public org.javabb.vo.Group getGroup() {
        return this.group;
    }

    public void setGroup(org.javabb.vo.Group jbbGroup) {
        this.group = jbbGroup;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("comp_id", getComp_id())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof GroupPermission) ) return false;
        GroupPermission castOther = (GroupPermission) other;
        return new EqualsBuilder()
            .append(this.getComp_id(), castOther.getComp_id())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getComp_id())
            .toHashCode();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -