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.taxeditor.model;
|
11
|
|
12
|
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
|
13
|
|
14
|
/**
|
15
|
*
|
16
|
* @author n.hoffmann
|
17
|
* @created Mar 30, 2011
|
18
|
* @version 1.0
|
19
|
*/
|
20
|
public class PolytomousKeyRelationship {
|
21
|
private Object destination;
|
22
|
private Object source;
|
23
|
|
24
|
public PolytomousKeyRelationship(Object source, Object destination) {
|
25
|
this.source = HibernateProxyHelper.deproxy(source);
|
26
|
this.destination = HibernateProxyHelper.deproxy(destination);
|
27
|
}
|
28
|
|
29
|
/**
|
30
|
* @param destination
|
31
|
* the destination to set
|
32
|
*/
|
33
|
public void setDestination(Object destination) {
|
34
|
this.destination = destination;
|
35
|
}
|
36
|
|
37
|
/**
|
38
|
* @return the destination
|
39
|
*/
|
40
|
public Object getDestination() {
|
41
|
return destination;
|
42
|
}
|
43
|
|
44
|
/**
|
45
|
* @param source
|
46
|
* the source to set
|
47
|
*/
|
48
|
public void setSource(Object source) {
|
49
|
this.source = source;
|
50
|
}
|
51
|
|
52
|
/**
|
53
|
* @return the source
|
54
|
*/
|
55
|
public Object getSource() {
|
56
|
return source;
|
57
|
}
|
58
|
}
|