2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.occurrence
;
13 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
14 import eu
.etaxonomy
.cdm
.model
.description
.Scope
;
15 import eu
.etaxonomy
.cdm
.model
.media
.IdentifyableMediaEntity
;
17 import org
.apache
.log4j
.Logger
;
18 import org
.hibernate
.annotations
.Cascade
;
19 import org
.hibernate
.annotations
.CascadeType
;
20 import javax
.persistence
.*;
25 * @created 08-Nov-2007 13:06:16
28 public class Collection
extends IdentifyableMediaEntity
{
29 private static final Logger logger
= Logger
.getLogger(Collection
.class);
32 private String codeStandard
;
34 private String townOrLocation
;
35 private Institution institute
;
36 private Collection superCollection
;
43 public static Collection
NewInstance(){
44 return new Collection();
50 protected Collection() {
56 @Cascade({CascadeType
.SAVE_UPDATE
})
57 public Institution
getInstitute(){
58 return this.institute
;
63 * @param institute institute
65 public void setInstitute(Institution institute
){
66 this.institute
= institute
;
69 public String
getCode(){
77 public void setCode(String code
){
81 public String
getCodeStandard(){
82 return this.codeStandard
;
87 * @param codeStandard codeStandard
89 public void setCodeStandard(String codeStandard
){
90 this.codeStandard
= codeStandard
;
93 public String
getName(){
101 public void setName(String name
){
105 public String
getTownOrLocation(){
106 return this.townOrLocation
;
111 * @param townOrLocation townOrLocation
113 public void setTownOrLocation(String townOrLocation
){
114 this.townOrLocation
= townOrLocation
;
117 public String
generateTitle(){
122 @Cascade({CascadeType
.SAVE_UPDATE
})
123 public Collection
getSuperCollection() {
124 return superCollection
;
127 public void setSuperCollection(Collection superCollection
) {
128 this.superCollection
= superCollection
;