diff --git a/teams/src/main/java/ba/steleks/repository/TeamsMediaJpaRepository.java b/teams/src/main/java/ba/steleks/repository/TeamsMediaJpaRepository.java index e47431d..4ae9832 100644 --- a/teams/src/main/java/ba/steleks/repository/TeamsMediaJpaRepository.java +++ b/teams/src/main/java/ba/steleks/repository/TeamsMediaJpaRepository.java @@ -1,7 +1,11 @@ package ba.steleks.repository; +import ba.steleks.repository.module.TeamMedia; +import org.springframework.data.repository.PagingAndSortingRepository; + + /** * Created by admin on 24/03/2017. */ -public class TeamsMediaJpaRepository { +public interface TeamsMediaJpaRepository extends PagingAndSortingRepository { } diff --git a/teams/src/main/java/ba/steleks/repository/module/TeamMedia.java b/teams/src/main/java/ba/steleks/repository/module/TeamMedia.java index ddd3608..176e0a6 100644 --- a/teams/src/main/java/ba/steleks/repository/module/TeamMedia.java +++ b/teams/src/main/java/ba/steleks/repository/module/TeamMedia.java @@ -6,6 +6,7 @@ import java.util.Set; /** * Created by admin on 23/03/2017. */ +@Entity public class TeamMedia { @Id @GeneratedValue(strategy = GenerationType.AUTO)