public class JpaInspectorConfig extends BaseObjectInspectorConfig
mActionStyle, mNullActionStyle, mNullPropertyStyle, mPropertyStyle| Constructor and Description |
|---|
JpaInspectorConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
int |
hashCode() |
protected boolean |
isHideIds() |
protected boolean |
isHideTransients() |
protected boolean |
isHideVersions() |
JpaInspectorConfig |
setHideIds(boolean hideIds)
Sets whether the Inspector returns Id properties as
hidden="true". |
JpaInspectorConfig |
setHideTransients(boolean hideTransients)
Sets whether the Inspector returns Transient properties as
hidden="true". |
JpaInspectorConfig |
setHideVersions(boolean hideVersions)
Sets whether the Inspector returns Version properties as
hidden="true". |
JpaInspectorConfig |
setPropertyStyle(PropertyStyle propertyStyle)
Overridden to return a JpaInspectorConfig, as part of a fluent interface.
|
getActionStyle, getPropertyStyle, setActionStylepublic JpaInspectorConfig setHideIds(boolean hideIds)
hidden="true". True by
default.
JPA recommends using synthetic ids, so generally they don't appear in the UI.
public JpaInspectorConfig setHideVersions(boolean hideVersions)
hidden="true". True by
default.
JPA uses these as an optimisic locking mechanism, so generally they don't appear in the UI.
public JpaInspectorConfig setHideTransients(boolean hideTransients)
hidden="true". False
by default.
There is not a firm relationship between whether a field should be persisted by JPA, and
whether it should appear in the UI. Some architectures prefer Transient fields to be hidden
in the UI by default, but some prefer them to be visible. The latter applies both to
'synthetic' fields such as getAge that calculates based off a persisted
getDateOfBirth, and also to overridden JPA fields (which generally must be
marked Transient in the subclass).
public JpaInspectorConfig setPropertyStyle(PropertyStyle propertyStyle)
setPropertyStyle in class BaseObjectInspectorConfigpublic boolean equals(Object that)
equals in class BaseObjectInspectorConfigpublic int hashCode()
hashCode in class BaseObjectInspectorConfigprotected boolean isHideIds()
protected boolean isHideVersions()
protected boolean isHideTransients()
Copyright © 2015. All Rights Reserved.