DAO vs controller

This commit is contained in:
tuanvu
2026-01-05 13:06:41 +01:00
parent 459dd12499
commit 383039a679
4 changed files with 32 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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> {
}

View File

@@ -0,0 +1,4 @@
package hackathon.FrisbYEE.jpa.service;
public class CoachDAO {
}

View File

@@ -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 {
}