1 |
f4fd193c
|
n.hoffmann
|
// $Id$
|
2 |
|
|
/**
|
3 |
|
|
* Copyright (C) 2007 EDIT
|
4 |
|
|
* European Distributed Institute of Taxonomy
|
5 |
|
|
* http://www.e-taxonomy.eu
|
6 |
|
|
*
|
7 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9 |
|
|
*/
|
10 |
|
|
|
11 |
|
|
package eu.etaxonomy.taxeditor.model;
|
12 |
|
|
|
13 |
|
|
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
|
14 |
|
|
|
15 |
|
|
/**
|
16 |
|
|
*
|
17 |
|
|
* @author n.hoffmann
|
18 |
|
|
* @created Mar 30, 2011
|
19 |
|
|
* @version 1.0
|
20 |
|
|
*/
|
21 |
|
|
public class PolytomousKeyRelationship {
|
22 |
|
|
private Object destination;
|
23 |
|
|
private Object source;
|
24 |
|
|
|
25 |
|
|
public PolytomousKeyRelationship(Object source, Object destination) {
|
26 |
|
|
this.source = HibernateProxyHelper.deproxy(source);
|
27 |
|
|
this.destination = HibernateProxyHelper.deproxy(destination);
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
/**
|
31 |
|
|
* @param destination
|
32 |
|
|
* the destination to set
|
33 |
|
|
*/
|
34 |
|
|
public void setDestination(Object destination) {
|
35 |
|
|
this.destination = destination;
|
36 |
|
|
}
|
37 |
|
|
|
38 |
|
|
/**
|
39 |
|
|
* @return the destination
|
40 |
|
|
*/
|
41 |
|
|
public Object getDestination() {
|
42 |
|
|
return destination;
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
/**
|
46 |
|
|
* @param source
|
47 |
|
|
* the source to set
|
48 |
|
|
*/
|
49 |
|
|
public void setSource(Object source) {
|
50 |
|
|
this.source = source;
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
/**
|
54 |
|
|
* @return the source
|
55 |
|
|
*/
|
56 |
|
|
public Object getSource() {
|
57 |
|
|
return source;
|
58 |
|
|
}
|
59 |
|
|
}
|