Skip to content

Commit

Permalink
feat :: 트랜잭션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lgwk42 committed Jul 15, 2024
1 parent c05f3f0 commit a72074e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.project.qvick.domain.post.domain.repository.jpa;

import com.project.qvick.domain.post.domain.PostEntity;
import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface PostRepository extends JpaRepository<PostEntity, Long> {

@Transactional(rollbackOn = Exception.class)
void deleteById(Long id);

}

0 comments on commit a72074e

Please sign in to comment.