Interface RelationshipRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Relationship,,RelationshipPK> org.springframework.data.jpa.repository.JpaRepository<Relationship,,RelationshipPK> org.springframework.data.repository.PagingAndSortingRepository<Relationship,,RelationshipPK> org.springframework.data.repository.query.QueryByExampleExecutor<Relationship>,org.springframework.data.repository.Repository<Relationship,RelationshipPK>
public interface RelationshipRepository
extends org.springframework.data.jpa.repository.JpaRepository<Relationship,RelationshipPK>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById1(String id1) voiddeleteById2(String id2) findById1OrId2(String id1, String id2) voidupdateCreatedByIfMissing(String id1, String id2, String relType, String user) voidupdateModificationDate(String id1, String id2, String relType, String user, OffsetDateTime now) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findById1
-
findById2
-
findById1OrId2
-
deleteById1
-
deleteById2
-
updateCreatedByIfMissing
-
updateModificationDate
@Modifying @Query(value="update relationships set modified_by = ?4, modification_date = ?5 where id1 = ?1 and id2 = ?2 and reltype = ?3", nativeQuery=true) void updateModificationDate(String id1, String id2, String relType, String user, OffsetDateTime now)
-