all classes persistent and @Desciption imported
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / common / ReferencedMedia.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.model.common;
11
12
13 import eu.etaxonomy.cdm.model.reference.ReferenceBase;
14 import eu.etaxonomy.cdm.model.reference.StrictReferenceBase;
15 import org.apache.log4j.Logger;
16 import eu.etaxonomy.cdm.model.Description;
17 import java.util.*;
18 import javax.persistence.*;
19
20 /**
21 * @author m.doering
22 * @version 1.0
23 * @created 02-Nov-2007 19:36:28
24 */
25 @Entity
26 public abstract class ReferencedMedia extends Media implements IReferencedEntity {
27 static Logger logger = Logger.getLogger(ReferencedMedia.class);
28
29 @Description("")
30 private String citationMicroReference;
31 private ReferenceBase citation;
32
33 public ReferenceBase getCitation(){
34 return citation;
35 }
36
37 /**
38 *
39 * @param citation
40 */
41 public void setCitation(ReferenceBase citation){
42 ;
43 }
44
45 public String getCitationMicroReference(){
46 return citationMicroReference;
47 }
48
49 /**
50 *
51 * @param citationMicroReference
52 */
53 public void setCitationMicroReference(String citationMicroReference){
54 ;
55 }
56
57 @Transient
58 public String getCitation(){
59 return "";
60 }
61
62 @Transient
63 public StrictReferenceBase getCitation(){
64 return null;
65 }
66
67 }