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
.agent
;
13 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
14 import org
.apache
.log4j
.Logger
;
15 import org
.hibernate
.annotations
.Cascade
;
16 import org
.hibernate
.annotations
.CascadeType
;
19 import javax
.persistence
.*;
22 * A public or private institution.
23 * It includes name, contact details and institution type.
25 * See also the <a href="http://rs.tdwg.org/ontology/voc/Institution.rdf">TDWG Ontology</a>
29 * @created 08-Nov-2007 13:06:29
32 public class Institution
extends Agent
{
33 public Institution() {
35 // TODO Auto-generated constructor stub
38 static Logger logger
= Logger
.getLogger(Institution
.class);
39 //Acronym, code or initials by which the institution is generally known
42 private Set
<InstitutionType
> types
= new HashSet();
43 private Institution isPartOf
;
44 private Contact contact
;
47 @Cascade({CascadeType
.SAVE_UPDATE
})
48 public Contact
getContact(){
51 public void setContact(Contact contact
){
52 this.contact
= contact
;
56 public Set
<InstitutionType
> getTypes(){
59 public void addTypes(InstitutionType t
){
62 public void removeTypes(InstitutionType t
){
65 protected void setTypes(Set
<InstitutionType
> types
){
71 @Cascade({CascadeType
.SAVE_UPDATE
})
72 public Institution
getIsPartOf(){
75 public void setIsPartOf(Institution isPartOf
){
76 this.isPartOf
= isPartOf
;
79 public String
getCode(){
82 public void setCode(String code
){
87 public String
getName(){
90 public void setName(String name
){
95 public String
generateTitle(){