public class IdHelper extends Object
| Constructor and Description |
|---|
IdHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setIdOnPersistentObject(PersistentObject persistentObject,
Integer id)
Helper method that uses reflection to set the (inaccessible) id field of
the given
PersistentObject. |
public static final void setIdOnPersistentObject(PersistentObject persistentObject, Integer id) throws NoSuchFieldException, IllegalAccessException
PersistentObject.persistentObject - The object with the inaccessible id fieldid - The id to setNoSuchFieldExceptionIllegalAccessExceptionCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.