public class DefaultJpaRepositoryFactory extends Object implements JpaRepositoryFactory
| Constructor and Description |
|---|
DefaultJpaRepositoryFactory() |
| 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.
|
<T,I extends Serializable,D,J extends Serializable> |
createRelationshipRepository(JpaModule module,
Class<T> sourceResourceClass,
JpaRepositoryConfig<D> config)
Creates a relationship repository that maps an entity relationship to a JSON API endpoint.
|
public <T,I extends Serializable> JpaEntityRepository<T,I> createEntityRepository(JpaModule module, JpaRepositoryConfig<T> config)
JpaRepositoryFactorycreateEntityRepository in interface JpaRepositoryFactoryT - resource typeI - identifier typemodule - managing the repositoryconfig - for this repositorypublic <T,I extends Serializable,D,J extends Serializable> JpaRelationshipRepository<T,I,D,J> createRelationshipRepository(JpaModule module, Class<T> sourceResourceClass, JpaRepositoryConfig<D> config)
JpaRepositoryFactorycreateRelationshipRepository in interface JpaRepositoryFactoryT - source resource typeI - source identifier typeD - 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.