public interface JpaRepositoryFactory
DefaultJpaRepositoryFactory} is used.| 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.
|
<S,I extends java.io.Serializable,T,J extends java.io.Serializable> |
createRelationshipRepository(JpaModule module,
java.lang.Class<S> sourceResourceClass,
JpaRepositoryConfig<T> config)
Creates a relationship document that maps an entity relationship to a JSON API endpoint.
|
<T,I extends java.io.Serializable> JpaEntityRepository<T,I> createEntityRepository(JpaModule module, JpaRepositoryConfig<T> config)
T - document typeI - identifier typemodule - managing the documentconfig - for this document<S,I extends java.io.Serializable,T,J extends java.io.Serializable> JpaRelationshipRepository<S,I,T,J> createRelationshipRepository(JpaModule module, java.lang.Class<S> sourceResourceClass, JpaRepositoryConfig<T> config)
S - source document typeI - source identifier typeT - target document typeJ - target identifier typemodule - managing the documentsourceResourceClass - representing the source of the relation (entity or mapped dto)config - for this document