Skip to content

Commit

Permalink
[fix] stage 도메인 order 속성 수정 및 스케쥴 등록 시 transactional 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
oosedus committed Sep 1, 2024
1 parent 0f7da5c commit 6752319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.example.letscareer.common.exception.model.ValidationException;
import com.example.letscareer.user.domain.User;
import com.example.letscareer.user.repository.UserRepository;
import jakarta.transaction.Transactional;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
Expand All @@ -30,6 +31,7 @@ public class CareerService {
private final CareerRepository careerRepository;
private final UserRepository userRepository;

@Transactional
public void saveCareer(Long userId, SaveCareerRequest request) {

User user = userRepository.findByUserId(userId)
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/example/letscareer/stage/domain/Stage.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class Stage {

private Date date;
private String midName;

@Column(name = "`order`")
private Integer order;

@Enumerated(EnumType.STRING)
Expand Down

0 comments on commit 6752319

Please sign in to comment.