Class DtoAwarePersistentEntityFactory<T>
java.lang.Object
com.foreach.across.modules.entity.registry.PersistentEntityFactory<T>
com.foreach.across.modules.entity.registry.DtoAwarePersistentEntityFactory<T>
- All Implemented Interfaces:
EntityFactory<T>
- Since:
- 3.0.0
- Author:
- Arne Vandamme
- See Also:
-
Constructor Summary
ConstructorDescriptionDtoAwarePersistentEntityFactory
(org.springframework.data.mapping.PersistentEntity<T, ?> persistentEntity) -
Method Summary
Methods inherited from class com.foreach.across.modules.entity.registry.PersistentEntityFactory
createNew
-
Constructor Details
-
DtoAwarePersistentEntityFactory
public DtoAwarePersistentEntityFactory(org.springframework.data.mapping.PersistentEntity<T, ?> persistentEntity)
-
-
Method Details
-
createDto
Description copied from interface:EntityFactory
Create a DTO of an existing entity.- Specified by:
createDto
in interfaceEntityFactory<T>
- Overrides:
createDto
in classPersistentEntityFactory<T>
- Parameters:
entity
- to create a DTO for- Returns:
- dto
-