A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
410 B

5 years ago
5 years ago
5 years ago
  1. package org.ros.chatto.repository;
  2. import org.ros.chatto.model.Role;
  3. import org.springframework.data.jpa.repository.JpaRepository;
  4. import org.springframework.data.jpa.repository.Query;
  5. import org.springframework.stereotype.Repository;
  6. @Repository
  7. public interface RoleRepository extends JpaRepository<Role, Long>{
  8. @Query("select r from Role r where r.name = ?1")
  9. public Role findByName(String roleName);
  10. }