Project

General

Profile

Revision d62d6bb3

IDd62d6bb34864dadd613286cb9ced84f25235cb9e
Parent b5c5e6fc
Child eac82784

Added by Andreas Müller over 1 year ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/AnnotationType.java
69 69

  
70 70
//************************** METHODS ********************************
71 71

  
72
	/* (non-Javadoc)
73
	 * @see eu.etaxonomy.cdm.model.common.DefinedTermBase#resetTerms()
74
	 */
75 72
	@Override
76 73
	public void resetTerms(){
77 74
		termMap = null;
......
96 93

  
97 94
	@Override
98 95
    protected void setDefaultTerms(TermVocabulary<AnnotationType> termVocabulary) {
99
		termMap = new HashMap<UUID, AnnotationType>();
96
		termMap = new HashMap<>();
100 97
		for (AnnotationType term : termVocabulary.getTerms()){
101 98
			termMap.put(term.getUuid(), term);
102 99
		}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/IIdentifiableEntity.java
194 194

  
195 195
	void removeSources();
196 196

  
197

  
198

  
199

  
200 197
}
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/occurrence/SpecimenTest.java
203 203

  
204 204
	}
205 205

  
206

  
207
	/**
208
	 * Test method for {@link eu.etaxonomy.cdm.model.occurrence.Specimen#clone()}.
209
	 */
210 206
	@Test
211 207
	public void testClone() {
212 208
		logger.debug("Start testClone");
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/name/TypeDesignationDaoHibernateImpl.java
24 24
 *
25 25
 */
26 26
@Repository
27
public class TypeDesignationDaoHibernateImpl<T extends TypeDesignationBase<?>>
27
public class TypeDesignationDaoHibernateImpl
28 28
			extends SourcedEntityDaoImpl<TypeDesignationBase<?>>
29 29
            implements ITypeDesignationDao {
30 30

  
......
32 32
	private static final Logger logger = Logger.getLogger(TypeDesignationDaoHibernateImpl.class);
33 33

  
34 34
	public TypeDesignationDaoHibernateImpl() {
35
		super(TypeDesignationBase.class);
35
		super((Class)(TypeDesignationBase.class));
36 36
	}
37 37

  
38 38
	//TODO limit start
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/INameService.java
27 27
import eu.etaxonomy.cdm.api.service.search.SearchResult;
28 28
import eu.etaxonomy.cdm.api.utility.TaxonNamePartsFilter;
29 29
import eu.etaxonomy.cdm.model.common.Language;
30
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
31 30
import eu.etaxonomy.cdm.model.common.RelationshipBase;
32 31
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
33 32
import eu.etaxonomy.cdm.model.name.HybridRelationship;
......
93 92
	 */
94 93
	public Map<UUID, TypeDesignationBase<?>> saveTypeDesignationAll(Collection<TypeDesignationBase<?>> typeDesignationCollection);
95 94

  
96
	public Map<UUID, ReferencedEntityBase> saveReferencedEntitiesAll(Collection<ReferencedEntityBase> referencedEntityCollection);
97

  
98 95
	/**
99 96
	 * Saves the given homotypical groups.
100 97
	 * @param homotypicalGroups
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/NameServiceImpl.java
406 406

  
407 407
    /**
408 408
     * TODO candidate for harmonization
409
     * new name saveReferencedEntities
410
     */
411
    @Override
412
    @Transactional(readOnly = false)
413
    public Map<UUID, ReferencedEntityBase> saveReferencedEntitiesAll(Collection<ReferencedEntityBase> referencedEntityCollection){
414
        return referencedEntityDao.saveAll(referencedEntityCollection);
415
    }
416

  
417
    /**
418
     * TODO candidate for harmonization
419 409
     * new name getNomenclaturalStatus
420 410
     */
421 411
    @Override

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)