Project

General

Profile

« Previous | Next » 

Revision 379eb203

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/replace/impl/SetReferringObjectMetadata.java
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
 */
1 9
package eu.etaxonomy.cdm.persistence.hibernate.replace.impl;
2 10

  
3 11
import java.util.Set;
......
14 22
		super(fromClass, propertyName, toClass);
15 23
	}
16 24

  
17
	public void replace(CdmBase referringObject, CdmBase x, CdmBase y)
25
	@Override
26
    public void replace(CdmBase referringObject, CdmBase x, CdmBase y)
18 27
			throws IllegalArgumentException, IllegalAccessException {
19 28
		Set<CdmBase> property = (Set<CdmBase>)field.get(referringObject);
20 29
        property.remove(x);
......
22 31
            property.add(y);
23 32
        }
24 33
	}
25

  
26 34
}

Also available in: Unified diff