1
|
/**
|
2
|
* Copyright (C) 2015 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
|
package eu.etaxonomy.taxeditor.view;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.common.ICdmBase;
|
12
|
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
|
13
|
|
14
|
/**
|
15
|
* @author a.mueller
|
16
|
* @date 01.04.2021
|
17
|
*/
|
18
|
public class DtoWithEntity<S extends ICdmBase> extends UuidAndTitleCache<S> {
|
19
|
|
20
|
private static final long serialVersionUID = -7400373251065982668L;
|
21
|
|
22
|
private S entity;
|
23
|
|
24
|
public DtoWithEntity(S entity) {
|
25
|
super((Class<? extends S>)entity.getClass(), entity.getUuid(), entity.getId(), null);
|
26
|
this.setEntity(entity);
|
27
|
}
|
28
|
|
29
|
public S getEntity() {
|
30
|
return entity;
|
31
|
}
|
32
|
public void setEntity(S entity) {
|
33
|
this.entity = entity;
|
34
|
}
|
35
|
}
|