
net.smartcosmos.cluster.userdetails.repository.RoleRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartcosmos-user-entity-devkit Show documentation
Show all versions of smartcosmos-user-entity-devkit Show documentation
Devkit implementation of User mananagement entities and data layer
The newest version!
package net.smartcosmos.cluster.userdetails.repository;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;
import net.smartcosmos.cluster.userdetails.domain.RoleEntity;
/**
* Initially created by SMART COSMOS Team on June 30, 2016.
*/
public interface RoleRepository extends JpaRepository,
PagingAndSortingRepository,
JpaSpecificationExecutor {
Optional findByTenantIdAndNameIgnoreCase(UUID tenantId, String name);
Optional findByTenantIdAndId(UUID tenantId, UUID id);
@Transactional
List deleteByTenantIdAndId(UUID tenantId, UUID id);
List findByTenantId(UUID tenantId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy