package Viettel.authen.repository; import Viettel.authen.entity.UserGroup; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface UserGroupRespository extends JpaRepository<UserGroup,Integer> { boolean existsByUserId(int userId); boolean existsByRoleId(int roleId); List<UserGroup> findUserGroupsByUserId(int userId); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter