public interface JpaRepositoryFactory
DefaultJpaRepositoryFactory} is used.| Modifier and Type | Method and Description |
|---|---|
<T,I extends Serializable> |
createEntityRepository(JpaModule module,
JpaRepositoryConfig<T> config)
Creates a resource repository that maps an entity to a JSON API endpoint.
|
<S,I extends Serializable,T,J extends Serializable> |
createRelationshipRepository(JpaModule module,
Class<S> sourceResourceClass,
JpaRepositoryConfig<T> config)
Creates a relationship repository that maps an entity relationship to a JSON API endpoint.
|
<T,I extends Serializable> JpaEntityRepository<T,I> createEntityRepository(JpaModule module, JpaRepositoryConfig<T> config)
T - resource typeI - identifier typemodule - managing the repositoryconfig - for this repository<S,I extends Serializable,T,J extends Serializable> JpaRelationshipRepository<S,I,T,J> createRelationshipRepository(JpaModule module, Class<S> sourceResourceClass, JpaRepositoryConfig<T> config)
S - source resource typeI - source identifier typeT - target resource typeJ - target identifier typemodule - managing the repositorysourceResourceClass - representing the source of the relation (entity or mapped dto)config - for this repositoryCopyright © 2017. All Rights Reserved.