1 26 27 29 package de.nava.informa.impl.hibernate; 30 31 import de.nava.informa.core.ItemIF; 32 import de.nava.informa.core.ItemMetadataIF; 33 34 42 public class ItemMetadata implements ItemMetadataIF, java.io.Serializable { 43 44 private int id; 45 private ItemIF item; 46 private boolean markedRead; 47 private int score; 48 49 public ItemMetadata() { 50 this(null); 51 } 52 53 58 public ItemMetadata(ItemIF item) { 59 this.item = item; 60 this.markedRead = false; 61 this.score = DEFAULT_SCORE; 62 } 63 64 70 public int getIntId() { 71 return id; 72 } 73 74 public void setIntId(int id) { 75 this.id = id; 76 } 77 78 public long getId() { 79 return id; 80 } 81 82 public void setId(long longid) { 83 this.id = (int) longid; 84 } 85 86 90 96 public ItemIF getItem() { 97 return item; 98 } 99 100 public void setItem(ItemIF item) { 101 this.item = item; 102 } 103 104 108 public boolean isMarkedRead() { 109 return markedRead; 110 } 111 112 public void setMarkedRead(boolean markedRead) { 113 this.markedRead = markedRead; 114 } 115 116 120 public int getScore() { 121 return score; 122 } 123 124 public void setScore(int score) { 125 this.score = score; 126 } 127 128 } 129 | Popular Tags |