Interface LPVSLicenseConflictRepository

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

@Repository public interface LPVSLicenseConflictRepository extends org.springframework.data.jpa.repository.JpaRepository<LPVSLicenseConflict,Long>
Repository interface for managing LPVSLicenseConflict entities. Extends JpaRepository for basic CRUD operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    findLicenseConflict(Long license1, Long license2)
    Find a specific license conflict between two licenses.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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

    • findLicenseConflict

      @Query("SELECT lc FROM LPVSLicenseConflict lc WHERE (lc.repositoryLicense.licenseId = :license1 AND lc.conflictLicense.licenseId = :license2) OR (lc.repositoryLicense.licenseId = :license2 AND lc.conflictLicense.licenseId = :license1) ORDER BY lc.conflictId DESC LIMIT 1") LPVSLicenseConflict findLicenseConflict(@Param("license1") Long license1, @Param("license2") Long license2)
      Find a specific license conflict between two licenses.
      Parameters:
      license1 - The ID of the first license.
      license2 - The ID of the second license.
      Returns:
      The latest LPVSLicenseConflict entity representing the conflict between the two licenses.