1 package org.javabb.vo; 2 3 import java.io.Serializable ; 4 import java.util.Date ; 5 import java.util.Set ; 6 7 import org.apache.commons.lang.builder.EqualsBuilder; 8 import org.apache.commons.lang.builder.HashCodeBuilder; 9 10 public class ForumTopUserPK implements Serializable { 11 12 private Long idForum; 13 private Long idUser; 14 15 public boolean equals(Object other) { 16 if ( !(other instanceof ForumTopUserPK) ) return false; 17 ForumTopUserPK castOther = (ForumTopUserPK) other; 18 return new EqualsBuilder() 19 .append(this.getIdForum(), castOther.getIdForum()) 20 .append(this.getIdUser(), castOther.getIdUser()) 21 .isEquals(); 22 } 23 24 public int hashCode() { 25 return new HashCodeBuilder() 26 .append(getIdForum()) 27 .append(getIdUser()) 28 .toHashCode(); 29 } 30 31 public Long getIdForum() { 32 return idForum; 33 } 34 public void setIdForum(Long idForum) { 35 this.idForum = idForum; 36 } 37 public Long getIdUser() { 38 return idUser; 39 } 40 public void setIdUser(Long idUser) { 41 this.idUser = idUser; 42 } 43 44 45 46 } 47 | Popular Tags |