Revision ab2f9bc5
Added by Andreas Müller almost 6 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/common/TestDatabase.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.agent.Institution; |
24 | 24 |
import eu.etaxonomy.cdm.model.agent.InstitutionalMembership; |
25 | 25 |
import eu.etaxonomy.cdm.model.agent.Person; |
26 |
import eu.etaxonomy.cdm.model.common.AnnotatableEntity; |
|
27 | 26 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
28 | 27 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
29 | 28 |
import eu.etaxonomy.cdm.model.common.VersionableEntity; |
... | ... | |
127 | 126 |
|
128 | 127 |
SpecimenOrObservationBase<?> specimen = DerivedUnit.NewPreservedSpecimenInstance(); |
129 | 128 |
|
130 |
specimen.setIndividualCount(12);
|
|
129 |
specimen.setIndividualCount("12");
|
|
131 | 130 |
|
132 |
|
|
133 |
Feature featureIndAss = Feature.INDIVIDUALS_ASSOCIATION(); |
|
134 | 131 |
TaxonNameDescription newTaxNameDesc = TaxonNameDescription.NewInstance(); |
135 |
// newTaxNameDesc.addFeature(featureIndAss); //was removed from model in 3.3 |
|
136 | 132 |
IndividualsAssociation indAss = IndividualsAssociation.NewInstance(); |
137 | 133 |
indAss.setAssociatedSpecimenOrObservation(specimen); |
138 | 134 |
|
139 | 135 |
newTaxNameDesc.addElement(indAss); |
140 | 136 |
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
// List<Synonym> synonyms = new ArrayList<Synonym>(); |
|
145 |
List<AnnotatableEntity> homotypicalGroups; |
|
146 |
|
|
147 | 137 |
Reference citRef, sec; |
148 | 138 |
TaxonName name1, name2, name21, nameRoot1, nameFree, synName11, synName12, synName2, synNameFree; |
149 | 139 |
TaxonName nameRoot2, nameR2_1, nameR2_2; |
... | ... | |
179 | 169 |
//Contact contact1 = new Contact(); |
180 | 170 |
//contact1.setEmail("someone@somewhere.org"); |
181 | 171 |
InstitutionalMembership membership |
182 |
= new InstitutionalMembership(institute, linne, period, "Biodiversity", "Head"); |
|
172 |
= new InstitutionalMembership(institute, linne, period, "Biodiversity", "Head");
|
|
183 | 173 |
//agentData.add(contact1); |
184 | 174 |
|
185 | 175 |
agentData.add(membership); |
Also available in: Unified diff
cleanup not compiling and other issues in app-import and pesi