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
ConstructorsConstructorDescriptionPersistentEntityFactory(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:EntityFactoryCreate a new entity instance. In case of anEntityFactoryfor an association, the first (and often only) argument will be the parent entity.- Specified by:
createNewin interfaceEntityFactory<T>- Parameters:
args- constructor arguments- Returns:
- new instance
-
createDto
Description copied from interface:EntityFactoryCreate a DTO of an existing entity.- Specified by:
createDtoin interfaceEntityFactory<T>- Parameters:
entity- to create a DTO for- Returns:
- dto
-