1 /******************************************************************************
2 * Genre.java - domain object
3 * $Id: Genre.java,v 1.3 2015/05/05 17:10:14 dick Exp $
4 *
5 * BuckoVidLib - The BuckoSoft Video Library
6 * Copyright(c) 2015 - Dick Balaska
7 *
8 * $Log: Genre.java,v $
9 * Revision 1.3 2015/05/05 17:10:14 dick
10 * When processing a video, check if Director/Writer/Actor/Genre exists in the database before writing a new one.
11 *
12 * Revision 1.2 2015/04/01 02:40:15 dick
13 * Genre needs an id for the db.
14 *
15 * Revision 1.1 2015/03/25 06:21:53 dick
16 * Define a Genre.
17 *
18 */
19 package com.buckosoft.BuckoVidLib.domain;
20
21 /** Define a Genre
22 * @author dick
23 * @since 2015-03-25
24 */
25 public class Genre {
26 private int id;
27 private String tag;
28
29 public Genre() {}
30
31 public Genre(String tag) {
32 this.tag = tag;
33 }
34
35 public void clone(Genre other) {
36 this.id = other.id;
37 this.tag = other.tag;
38 }
39
40 /**
41 * @return the id
42 */
43 public int getId() {
44 return id;
45 }
46
47 /**
48 * @param id the id to set
49 */
50 public void setId(int id) {
51 this.id = id;
52 }
53
54 /**
55 * @return the tag
56 */
57 public String getTag() {
58 return tag;
59 }
60
61 /**
62 * @param tag the tag to set
63 */
64 public void setTag(String tag) {
65 this.tag = tag;
66 }
67
68 }