Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package by.bsuir.finance.repositories.userinfo; import by.bsuir.finance.domain.UserRoles; import by.bsuir.finance.domain.Users; import org.springframework.data.jpa.repository.JpaRepository; /** * * @author igor */ public interface UserRoleRepository extends JpaRepository<UserRoles, Long> { public UserRoles findByUsers(Users users); //public UserRoles findByUsername(String username); }