Class PersistentEntityFactory<T>
java.lang.Object
com.foreach.across.modules.entity.registry.PersistentEntityFactory<T>
- All Implemented Interfaces:
EntityFactory<T>
- Direct Known Subclasses:
DtoAwarePersistentEntityFactory
Creates a basic
EntityFactory
from
a PersistentEntity
instance.- See Also:
-
Constructor Summary
ConstructorDescriptionPersistentEntityFactory
(org.springframework.data.mapping.PersistentEntity<T, ?> persistentEntity) -
Method Summary
-
Constructor Details
-
PersistentEntityFactory
public PersistentEntityFactory(org.springframework.data.mapping.PersistentEntity<T, ?> persistentEntity)
-
-
Method Details
-
createNew
Description copied from interface:EntityFactory
Create a new entity instance. In case of anEntityFactory
for an association, the first (and often only) argument will be the parent entity.- Specified by:
createNew
in interfaceEntityFactory<T>
- Parameters:
args
- constructor arguments- Returns:
- new instance
-
createDto
Description copied from interface:EntityFactory
Create a DTO of an existing entity.- Specified by:
createDto
in interfaceEntityFactory<T>
- Parameters:
entity
- to create a DTO for- Returns:
- dto
-