View Javadoc
1   /******************************************************************************
2    * Video_Genre.java - domain object
3    * $Id: Video_Genre.java,v 1.1 2015/04/26 23:38:41 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2015 - Dick Balaska
7    * 
8    * $Log: Video_Genre.java,v $
9    * Revision 1.1  2015/04/26 23:38:41  dick
10   * Map Genres to videos.
11   *
12   */
13  package com.buckosoft.BuckoVidLib.domain;
14  
15  import java.io.Serializable;
16  
17  import com.buckosoft.BuckoVidLib.util.HashCodeUtil;
18  
19  /** Map Genres to Videos.
20   * @author dick
21   * @since 2015-04-26
22   */
23  public class Video_Genre implements Serializable {
24  	private static final long serialVersionUID = 1L;
25  	int	videoId;
26  	int	genreId;
27  
28  	/* (non-Javadoc)
29  	 * @see java.lang.Object#equals(java.lang.Object)
30  	 */
31  	@Override
32  	public boolean equals(Object obj) {
33  		return(videoId == ((Video_Genre)obj).videoId && genreId == ((Video_Genre)obj).genreId);
34  	}
35  	/* (non-Javadoc)
36  	 * @see java.lang.Object#hashCode()
37  	 */
38  	@Override
39  	public int hashCode() {
40  		int result = HashCodeUtil.SEED;
41  		result = HashCodeUtil.hash(result, videoId);
42  		result = HashCodeUtil.hash(result, genreId);
43  		return(result);
44  	}
45  	/**
46  	 * @return the videoId
47  	 */
48  	public int getVideoId() {
49  		return videoId;
50  	}
51  	/**
52  	 * @param videoId the videoId to set
53  	 */
54  	public void setVideoId(int videoId) {
55  		this.videoId = videoId;
56  	}
57  	/**
58  	 * @return the genreId
59  	 */
60  	public int getGenreId() {
61  		return genreId;
62  	}
63  	/**
64  	 * @param genreId the genreId to set
65  	 */
66  	public void setGenreId(int genreId) {
67  		this.genreId = genreId;
68  	}
69  	
70  
71  }