public class DefaultJpaRepositoryFactory extends java.lang.Object implements JpaRepositoryFactory
| Constructor and Description |
|---|
DefaultJpaRepositoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T,I extends java.io.Serializable> |
createEntityRepository(JpaModule module,
JpaRepositoryConfig<T> config)
Creates a document document that maps an entity to a JSON API endpoint.
|
<T,I extends java.io.Serializable,D,J extends java.io.Serializable> |
createRelationshipRepository(JpaModule module,
java.lang.Class<T> sourceResourceClass,
JpaRepositoryConfig<D> config)
Creates a relationship document that maps an entity relationship to a JSON API endpoint.
|
public <T,I extends java.io.Serializable> JpaEntityRepository<T,I> createEntityRepository(JpaModule module, JpaRepositoryConfig<T> config)
JpaRepositoryFactorycreateEntityRepository in interface JpaRepositoryFactoryT - document typeI - identifier typemodule - managing the documentconfig - for this documentpublic <T,I extends java.io.Serializable,D,J extends java.io.Serializable> JpaRelationshipRepository<T,I,D,J> createRelationshipRepository(JpaModule module, java.lang.Class<T> sourceResourceClass, JpaRepositoryConfig<D> config)
JpaRepositoryFactorycreateRelationshipRepository in interface JpaRepositoryFactoryT - source document typeI - source identifier typeD - target document typeJ - target identifier typemodule - managing the documentsourceResourceClass - representing the source of the relation (entity or mapped dto)config - for this document