public class CreatedHelper extends Object
| Constructor and Description |
|---|
CreatedHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setCreatedOnPersistentObject(PersistentObject persistentObject,
org.joda.time.ReadableDateTime created)
Helper method that uses reflection to set the (inaccessible) created field of
the given
PersistentObject. |
public static final void setCreatedOnPersistentObject(PersistentObject persistentObject, org.joda.time.ReadableDateTime created) throws NoSuchFieldException, IllegalAccessException
PersistentObject.persistentObject - The object with the inaccessible created fieldcreated - The created datetime to setNoSuchFieldExceptionIllegalAccessExceptionCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.