public interface AtlassianHostRepository extends CrudRepository<AtlassianHost,String>
NOTE: A component implementing this interface is required for your application to start. Such a
component is typically obtained by
including the appropriate @Enable${store}Repositories annotation.
For using Spring Data JPA, instead of including the
@EnableJpaRepositories annotation yourself, include the following dependency on the companion Spring Boot
starter in your Maven POM, which additionally provides integration with
Liquibase and enables Spring Data auditing:
<dependency> <groupId>com.atlassian.connect</groupId> <artifactId>atlassian-connect-spring-boot-jpa-starter</artifactId> <version>${atlassian-connect-spring-boot.version}</version> </dependency>
| Modifier and Type | Method and Description |
|---|---|
Optional<AtlassianHost> |
findFirstByBaseUrl(String baseUrl)
Returns the host with the given base URL.
|
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAllOptional<AtlassianHost> findFirstByBaseUrl(String baseUrl)
baseUrl - the base URL of the host applicationOptional.empty()AtlassianHost.getBaseUrl()Copyright © 2020 Atlassian. All rights reserved.