public class DomainClassPropertyEditor<T,ID extends Serializable> extends PropertyEditorSupport
PropertyEditor
to map entities handled by a CrudRepository
to their id's and vice versa.Constructor and Description |
---|
DomainClassPropertyEditor(CrudInvoker<?> invoker,
EntityInformation<T,ID> information,
PropertyEditorRegistry registry)
Creates a new
DomainClassPropertyEditor for the given repository, EntityInformation and
PropertyEditorRegistry . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAsText() |
int |
hashCode() |
void |
setAsText(String idAsString) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public DomainClassPropertyEditor(CrudInvoker<?> invoker, EntityInformation<T,ID> information, PropertyEditorRegistry registry)
DomainClassPropertyEditor
for the given repository, EntityInformation
and
PropertyEditorRegistry
.invoker
- must not be null.information
- must not be null.registry
- must not be null.public void setAsText(String idAsString)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.