@Component public class EntityHydration extends Object
| Constructor and Description |
|---|
EntityHydration(EntityManager entityManager) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
dehydrate(Entity entity)
Creates a Map containing the values required to rebuild this entity.
|
Entity |
hydrate(Map<String,Object> dehydratedEntity,
EntityType entityType)
Rehydrate an entity.
|
@Autowired public EntityHydration(EntityManager entityManager)
public Entity hydrate(Map<String,Object> dehydratedEntity, EntityType entityType)
EntityWithComputedAttributes
if there are attributes present with an expressionentityType - metadata of the entity to rehydratedehydratedEntity - map with key value pairs representing this entityCopyright © 2017. All Rights Reserved.