mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
create services closes #4
This commit is contained in:
parent
bb2ccd085b
commit
6f13b64a70
7 changed files with 74 additions and 12 deletions
|
@ -46,6 +46,14 @@
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<goal>attach-javadocs</goal>
|
||||||
|
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
@ -62,4 +70,4 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package guru.springframework.springpetclinic.services;
|
||||||
|
|
||||||
|
import guru.springframework.springpetclinic.model.Owner;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public interface OwnerService {
|
||||||
|
|
||||||
|
Owner findByLastName(String lastName);
|
||||||
|
|
||||||
|
Owner findById(Long id);
|
||||||
|
|
||||||
|
Owner save(Owner owner);
|
||||||
|
|
||||||
|
Set<Owner> findAll();
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package guru.springframework.springpetclinic.services;
|
||||||
|
|
||||||
|
import guru.springframework.springpetclinic.model.Owner;
|
||||||
|
import guru.springframework.springpetclinic.model.Pet;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public interface PetService {
|
||||||
|
|
||||||
|
Pet findById(Long id);
|
||||||
|
|
||||||
|
Pet save(Pet pet);
|
||||||
|
|
||||||
|
Set<Pet> findAll();
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package guru.springframework.springpetclinic.services;
|
||||||
|
|
||||||
|
import guru.springframework.springpetclinic.model.Pet;
|
||||||
|
import guru.springframework.springpetclinic.model.Vet;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public interface VetService {
|
||||||
|
|
||||||
|
Vet findById(Long id);
|
||||||
|
|
||||||
|
Vet save(Vet vet);
|
||||||
|
|
||||||
|
Set<Vet> findAll();
|
||||||
|
}
|
|
@ -49,5 +49,16 @@
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
8
pom.xml
8
pom.xml
|
@ -23,6 +23,13 @@
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
@ -32,6 +39,7 @@
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<goals>install</goals>
|
<goals>install</goals>
|
||||||
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#release configuration
|
|
||||||
#Mon Nov 23 22:37:23 CET 2020
|
|
||||||
projectVersionPolicyId=default
|
|
||||||
scm.tagNameFormat=@{project.artifactId}-@{project.version}
|
|
||||||
remoteTagging=true
|
|
||||||
scm.commentPrefix=[maven-release-plugin]
|
|
||||||
pushChanges=true
|
|
||||||
completedPhase=check-poms
|
|
||||||
scm.url=scm\:git\:git@github.com\:marc-wagner/spring-petclinic.git
|
|
||||||
exec.snapshotReleasePluginAllowed=false
|
|
||||||
preparationGoals=clean verify
|
|
Loading…
Reference in a new issue