Skip to content
Snippets Groups Projects
Commit b86097fe authored by Joshua Gill's avatar Joshua Gill
Browse files

Removal of unnecessary "findALl" methods, adding in missing JavaDoc

parent 5051c0ac
No related branches found
No related tags found
3 merge requests!56tags will be saved to userFavTags table (needs user ID of current logged in user),!50Merging for latest changes,!46Develop
Showing
with 5 additions and 60 deletions
...@@ -12,12 +12,6 @@ import java.util.Optional; ...@@ -12,12 +12,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "AdminTypes" and "Long" * Extends the JpaRepository library with the types of "AdminTypes" and "Long"
*/ */
public interface AdminTypesRepo extends JpaRepository<AdminTypes, Long> { public interface AdminTypesRepo extends JpaRepository<AdminTypes, Long> {
/**
* FindAll method
* @return list of AdminTypes found
*/
List<AdminTypes> findAll();
/** /**
* Find an AdminType by the Id * Find an AdminType by the Id
* @param adminTypeId - id of the AdminType to find * @param adminTypeId - id of the AdminType to find
......
...@@ -8,12 +8,6 @@ import java.util.List; ...@@ -8,12 +8,6 @@ import java.util.List;
* Repository for the "Categories" Entity * Repository for the "Categories" Entity
*/ */
public interface CategoriesRepo extends JpaRepository<Categories, Long> { public interface CategoriesRepo extends JpaRepository<Categories, Long> {
/**
* Find all method
* @return - list of all the categories
*/
List<Categories> findALl();
/** /**
* Save method * Save method
* @param category - the category to save * @param category - the category to save
......
...@@ -12,12 +12,6 @@ import java.util.Optional; ...@@ -12,12 +12,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "Rewards" and "Long" * Extends the JpaRepository library with the types of "Rewards" and "Long"
*/ */
public interface RewardsRepo extends JpaRepository<StampBoards, Long> { public interface RewardsRepo extends JpaRepository<StampBoards, Long> {
/**
* FindAll method
* @return list of StampBoards found
*/
List<StampBoards> findAll();
/** /**
* Save method * Save method
* @param rewards - the new object to save * @param rewards - the new object to save
......
...@@ -11,12 +11,6 @@ import java.util.Optional; ...@@ -11,12 +11,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "Shops" and "Long" * Extends the JpaRepository library with the types of "Shops" and "Long"
*/ */
public interface ShopsRepo extends JpaRepository<Shops, Long> { public interface ShopsRepo extends JpaRepository<Shops, Long> {
/**
* FindAll method
* @return list of Shops found
*/
// List<Shops> findAll();
/** /**
* Save method * Save method
* @param shops - the object to save * @param shops - the object to save
...@@ -67,6 +61,11 @@ public interface ShopsRepo extends JpaRepository<Shops, Long> { ...@@ -67,6 +61,11 @@ public interface ShopsRepo extends JpaRepository<Shops, Long> {
@Query("select s from Shops s where s.shopActive = false") @Query("select s from Shops s where s.shopActive = false")
List<Shops> findInactiveShops(); List<Shops> findInactiveShops();
/**
* Search by stampBoardId
* @param stampId - the id of the StampBoard to search by
* @return - an optional containing the shop found
*/
@Query("select s from Shops s where s.stampBoard.stampBoardId = ?1") @Query("select s from Shops s where s.stampBoard.stampBoardId = ?1")
Optional<Shops> findByStampId(long stampId); Optional<Shops> findByStampId(long stampId);
} }
...@@ -11,12 +11,6 @@ import java.util.Optional; ...@@ -11,12 +11,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "StampBoards" and "Long" * Extends the JpaRepository library with the types of "StampBoards" and "Long"
*/ */
public interface StampBoardsRepo extends JpaRepository<StampBoards, Long> { public interface StampBoardsRepo extends JpaRepository<StampBoards, Long> {
/**
* FindAll method
* @return list of StampBoards found
*/
List<StampBoards> findAll();
/** /**
* Save Method * Save Method
* @param stampBoards - the StampBoard to save * @param stampBoards - the StampBoard to save
......
...@@ -11,12 +11,6 @@ import java.util.List; ...@@ -11,12 +11,6 @@ import java.util.List;
* Extends the JpaRepository library with the types of "Tags" and "Long" * Extends the JpaRepository library with the types of "Tags" and "Long"
*/ */
public interface TagsRepo extends JpaRepository<Tags, Long> { public interface TagsRepo extends JpaRepository<Tags, Long> {
/**
* FindAll method
* @return list of Tags found
*/
List<Tags> findAll();
/** /**
* Save method * Save method
* @param tags - the object to save * @param tags - the object to save
......
...@@ -11,12 +11,6 @@ import java.util.Optional; ...@@ -11,12 +11,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "TwoFactorMethods" and "Long" * Extends the JpaRepository library with the types of "TwoFactorMethods" and "Long"
*/ */
public interface TwoFactorMethodsRepo extends JpaRepository<TwoFactorMethods, Long> { public interface TwoFactorMethodsRepo extends JpaRepository<TwoFactorMethods, Long> {
/**
* FindAll method
* @return list of TwoFactorMethods found
*/
List<TwoFactorMethods> findAll();
/** /**
* Search by the id of the two factor method * Search by the id of the two factor method
* @param twoFactorMethodId - the id to search by * @param twoFactorMethodId - the id to search by
......
...@@ -10,12 +10,6 @@ import java.util.List; ...@@ -10,12 +10,6 @@ import java.util.List;
* Extends the JpaRepository library with the types of "UserPermissions" and "Long" * Extends the JpaRepository library with the types of "UserPermissions" and "Long"
*/ */
public interface UserPermissionsRepo extends JpaRepository<UserPermissions, Long> { public interface UserPermissionsRepo extends JpaRepository<UserPermissions, Long> {
/**
* FindAll method
* @return list of UserPermissions found
*/
List<UserPermissions> findAll();
/** /**
* Save method * Save method
* @param userPermissions - the object to save * @param userPermissions - the object to save
......
...@@ -9,12 +9,6 @@ import java.util.List; ...@@ -9,12 +9,6 @@ import java.util.List;
* Extends the JpaRepository library with the types of "UserStampBoards" and "Long" * Extends the JpaRepository library with the types of "UserStampBoards" and "Long"
*/ */
public interface UserStampBoardsRepo extends JpaRepository<UserStampBoards, Long> { public interface UserStampBoardsRepo extends JpaRepository<UserStampBoards, Long> {
/**
* FindAll method
* @return list of UserStampBoards found
*/
List<UserStampBoards> findAll();
/** /**
* Save method * Save method
* @param userStampBoards - the object to save * @param userStampBoards - the object to save
......
...@@ -11,12 +11,6 @@ import java.util.Optional; ...@@ -11,12 +11,6 @@ import java.util.Optional;
* Extends the JpaRepository library with the types of "Users" and "Long" * Extends the JpaRepository library with the types of "Users" and "Long"
*/ */
public interface UsersRepo extends JpaRepository<Users, Long> { public interface UsersRepo extends JpaRepository<Users, Long> {
/**
* FindAll method
* @return list of Users found
*/
List<Users> findAll();
/** /**
* Method for finding a user by the email * Method for finding a user by the email
* @param email - the email to search by * @param email - the email to search by
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment