Package com.skava.repository
Interface CollectionPropertyRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionPropertyEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.ListCrudRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<CollectionPropertyEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CollectionPropertyEntity>
,org.springframework.data.repository.Repository<CollectionPropertyEntity,
Long>
public interface CollectionPropertyRepository
extends org.springframework.data.jpa.repository.JpaRepository<CollectionPropertyEntity,Long>
This is CollectionPropertyRepository interface.
Interface for generic CRUD operations of the CollectionProperty entity.
This handles the below operations.
- Read
- Update
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionfindByAttributeIdAndCollectionId
(Long attributeId, Long collectionId) This is used to load collection properties by attribute id and collection id.findByAttributeNameAndCollectionId
(String name, Long collectionId) This is used to load collection properties by name and collectionId.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
-
findByAttributeNameAndCollectionId
Optional<CollectionPropertyEntity> findByAttributeNameAndCollectionId(String name, Long collectionId) This is used to load collection properties by name and collectionId.- Parameters:
name
- Indicates the name of the collection property.collectionId
- Indicates the collection id.- Returns:
- The optional of
CollectionPropertyEntity
object.
-
findByAttributeIdAndCollectionId
This is used to load collection properties by attribute id and collection id.- Parameters:
attributeId
- Indicates the attribute id for which collection properties gets loaded.collectionId
- Indicates the collection id for which collection properties gets loaded.- Returns:
- The
CollectionPropertyEntity
object.
-