@Repository public interface LicenseKeyPermissionRepository extends org.springframework.data.jpa.repository.JpaRepository<LicenseKeyPermission,LicenseKeyPermissionID>
LicenseKeyPermission.| Modifier and Type | Method and Description |
|---|---|
LicenseKeyPermission |
findByLKey(String licenseKey)
Method to find license key permissions by license key.
|
int |
updatePermissionList(String updatedPermissionString,
String licenseKey,
java.time.LocalDateTime updationTime,
String updatedBy)
Method to update license key permissions.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllLicenseKeyPermission findByLKey(String licenseKey)
licenseKey - the license key for which permission needs to be fetched.@Modifying @Query(value="UPDATE LicenseKeyPermission p SET p.permission =?1, p.updatedDateTimes =?3, p.updatedBy=?4 WHERE p.lKey =?2") int updatePermissionList(String updatedPermissionString, String licenseKey, java.time.LocalDateTime updationTime, String updatedBy)
updatedPermissionString - the updated permission list.licenseKey - the license key.updationTime - the time at which the list is updated.updatedBy - the list updated by.Copyright © 2020. All rights reserved.