package open.dolphin.infomodel;
// Generated 2010/06/30 10:57:59 by Hibernate Tools 3.2.1.GA

import open.dolphin.queries.DolphinQuery;

/**
 * SubscribedTreeModel generated by hbm2java
 */
public class SubscribedTreeModel extends InfoModel {

     private long id;
     private UserModel user;
     private long treeId;

    public SubscribedTreeModel() {
    }

    @Override
    public boolean search(DolphinQuery query) {
        return false;
    }

    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    public UserModel getUser() {
        return this.user;
    }
    
    public void setUser(UserModel user) {
        this.user = user;
    }
    /**
     *
     * @return
     */
    public long getTreeId() {
        return this.treeId;
    }
    
    public void setTreeId(long treeId) {
        this.treeId = treeId;
    }

    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + (int) (id ^ (id >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SubscribedTreeModel other = (SubscribedTreeModel) obj;
        if (getId() != other.getId()) {
            return false;
        }
        return true;
    }
}
