org.springframework.data.repository.support
Class DomainClassPropertyEditor<T,ID extends Serializable>
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.repository.support.DomainClassPropertyEditor<T,ID>
- All Implemented Interfaces:
- PropertyEditor
public class DomainClassPropertyEditor<T,ID extends Serializable>
- extends PropertyEditorSupport
Generic PropertyEditor
to map entities handled by a CrudRepository
to their id's and vice versa.
- Author:
- Oliver Gierke
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
DomainClassPropertyEditor
public DomainClassPropertyEditor(CrudInvoker<?> invoker,
EntityInformation<T,ID> information,
PropertyEditorRegistry registry)
- Creates a new
DomainClassPropertyEditor
for the given repository, EntityInformation
and
PropertyEditorRegistry
.
- Parameters:
invoker
- must not be null.information
- must not be null.registry
- must not be null.
setAsText
public void setAsText(String idAsString)
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.