DAO vs controller
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package hackathon.FrisbYEE.jpa.service;
|
||||
|
||||
import hackathon.FrisbYEE.jpa.metier.Activite;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
public interface ActiviteDAO extends JpaRepository<Activite, Integer> {
|
||||
Activite findByKeycloakId(String keycloakId);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package hackathon.FrisbYEE.jpa.service;
|
||||
|
||||
import hackathon.FrisbYEE.jpa.metier.Activite;
|
||||
import hackathon.FrisbYEE.jpa.metier.Athlete;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
public interface AthleteDAO extends JpaRepository<Athlete, Integer> {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package hackathon.FrisbYEE.jpa.service;
|
||||
|
||||
public class CoachDAO {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package hackathon.FrisbYEE.jpa.web;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/activite")
|
||||
|
||||
public class ActiviteController {
|
||||
}
|
||||
Reference in New Issue
Block a user