public class RemoveEmptyMapValuesUtil extends Object
| Constructor and Description |
|---|
RemoveEmptyMapValuesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
removeEmptyMapValues(Map map)
IMPORTANT TO CALL THIS BEFORE SAVING / UPDATING AN ENTITY WITH A DETAILS
MAP.
|
public static void removeEmptyMapValues(Map map)
@PreUpdate/@PrePersist nor @EntityListeners do
not work consistenly with cascaded objects in Hibernate, so call this
manually!map - the map to clean upCopyright © 2019. All rights reserved.