Add hubid for user
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package net.gepafin.tendermanagement.repositories;
|
||||
|
||||
import net.gepafin.tendermanagement.entities.HubEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface HubRepository extends JpaRepository<HubEntity, Long> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.gepafin.tendermanagement.repositories;
|
||||
|
||||
|
||||
import net.gepafin.tendermanagement.entities.UserHubEntity;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface UserHubRepository extends JpaRepository<UserHubEntity, Long> {
|
||||
List<UserHubEntity> findByHubId(String hubId);
|
||||
UserHubEntity findByHubIdAndUserId(String hubId, Long userId);
|
||||
}
|
||||
Reference in New Issue
Block a user