Interface GroupRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Group,Long>, org.springframework.data.jpa.repository.JpaRepository<Group,Long>, org.springframework.data.repository.PagingAndSortingRepository<Group,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Group>, org.springframework.data.repository.Repository<Group,Long>

@Repository public interface GroupRepository extends org.springframework.data.jpa.repository.JpaRepository<Group,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • getByName

      @Query("SELECT g FROM Group g WHERE g.name = ?1") Group getByName(String name)
    • getByUserUUID

      @Query("SELECT g FROM Group g JOIN g.users users WHERE users.uuid = ?1") List<Group> getByUserUUID(String name)