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(RepositoryInvoker 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, supportsCustomEditorpublic DomainClassPropertyEditor(RepositoryInvoker 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 PropertyEditorsetAsText in class PropertyEditorSupportpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.