1 /****************************************************************************** 2 * Writer.java - domain object 3 * $Id: Writer.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: Writer.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:44:21 dick 13 * Writers have an id and a name. 14 * 15 * Revision 1.1 2015/03/25 06:22:41 dick 16 * Define a Writer, someone who writes movies. 17 * 18 */ 19 package com.buckosoft.BuckoVidLib.domain; 20 21 /** Define a Writer 22 * @author dick 23 * @since 2015-03-25 24 */ 25 public class Writer { 26 private int id; 27 private String name; 28 29 public Writer() {} 30 31 /** Convienence constructor to set the name 32 * @param name The name of this writer 33 */ 34 public Writer(String name) { 35 this.name = name; 36 } 37 38 public void clone(Writer other) { 39 this.id = other.id; 40 this.name = other.name; 41 } 42 43 /** 44 * @return the id 45 */ 46 public int getId() { 47 return id; 48 } 49 50 /** 51 * @param id the id to set 52 */ 53 public void setId(int id) { 54 this.id = id; 55 } 56 57 /** 58 * @return the name 59 */ 60 public String getName() { 61 return name; 62 } 63 64 /** 65 * @param tag the name to set 66 */ 67 public void setName(String name) { 68 this.name = name; 69 } 70 71 }