Skip to content

Commit

Permalink
Mark delete(Specification) as transactional method.
Browse files Browse the repository at this point in the history
Override readOnly to false.

Closes #3499
  • Loading branch information
mp911de committed Jun 5, 2024
1 parent cf40f36 commit 2cd6d00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ private String getCountQueryString() {
return getQueryString(countQuery, entityInformation.getEntityName());
}

@Transactional
@Override
@Transactional
public void deleteById(ID id) {

Assert.notNull(id, ID_MUST_NOT_BE_NULL);
Expand Down Expand Up @@ -476,6 +476,7 @@ public boolean exists(Specification<T> spec) {
}

@Override
@Transactional
public long delete(Specification<T> spec) {

CriteriaBuilder builder = this.entityManager.getCriteriaBuilder();
Expand Down

0 comments on commit 2cd6d00

Please sign in to comment.